API Documentation
Loading...
Searching...
No Matches
TimeSpan Class Reference

#include <TimeSpan.h>

Collaboration diagram for TimeSpan:
[legend]

Public Member Functions

constexpr TimeSpan ()
 
constexpr TimeSpan (sint04 elapsed_nano_seconds)
 
constexpr TimeSpan (const sint08 elapsed_nano_seconds)
 
constexpr TimeSpan (uint04 elapsed_nano_seconds)
 
constexpr TimeSpan (const uint08 elapsed_nano_seconds)
 
constexpr TimeSpan (const fltp08 elapsed_seconds)
 
 TimeSpan (const Time &start, const Time &end)
 
constexpr TimeSpan (const Time &start, const sint08 &elapsed_nano_seconds)
 
constexpr TimeSpan (const Time &start, const fltp08 &elapsed_seconds)
 
NDEVR_BASE_API fltp08 elapsedPercent (Time time, bool clip_time) const
 
NDEVR_BASE_API String getTimeString (const String &format_string) const
 
constexpr Time startTime () const
 
constexpr void setStartTime (Time time)
 
constexpr void setEndTime (Time time)
 
NDEVR_BASE_API bool contains (const Time &time) const
 
NDEVR_BASE_API Time endTime () const
 
constexpr sint08 elapsedNanoseconds () const
 
constexpr fltp08 elapsedSeconds () const
 
template<class t_type = fltp08>
constexpr t_type elapsedMilliseconds () const
 
constexpr fltp08 elapsedMinutes () const
 
NDEVR_BASE_API sint08 elapsedDays () const
 
NDEVR_BASE_API sint08 elapsedMonths () const
 
constexpr bool operator== (const TimeSpan &time) const
 
constexpr bool operator!= (const TimeSpan &time) const
 
constexpr bool operator> (const TimeSpan &other) const
 
constexpr bool operator>= (const TimeSpan &other) const
 
constexpr bool operator< (const TimeSpan &other) const
 
constexpr bool operator<= (const TimeSpan &other) const
 
constexpr fltp08 operator/ (const TimeSpan &time_2) const
 
constexpr TimeSpan operator/ (const sint08 &den) const
 
constexpr TimeSpan operator/ (const fltp08 &den) const
 
constexpr TimeSpan operator* (const sint08 &mult) const
 
constexpr TimeSpan operator* (const fltp08 &mult) const
 
constexpr TimeSpanoperator*= (const sint08 &mult)
 
constexpr TimeSpanoperator*= (const fltp08 &mult)
 
constexpr TimeSpan operator+ (const TimeSpan &other) const
 
constexpr TimeSpanoperator+= (const TimeSpan &other)
 
constexpr TimeSpan operator- (const TimeSpan &other) const
 
constexpr TimeSpan operator- () const
 
constexpr TimeSpanoperator-= (const TimeSpan &other)
 

Protected Attributes

Time m_start_time
 
sint08 m_elapsed_time
 

Constructor & Destructor Documentation

◆ TimeSpan() [1/9]

TimeSpan ( )
inlineconstexpr

◆ TimeSpan() [2/9]

TimeSpan ( sint04 elapsed_nano_seconds)
inlineexplicitconstexpr

◆ TimeSpan() [3/9]

TimeSpan ( const sint08 elapsed_nano_seconds)
inlineexplicitconstexpr

◆ TimeSpan() [4/9]

TimeSpan ( uint04 elapsed_nano_seconds)
inlineexplicitconstexpr

◆ TimeSpan() [5/9]

TimeSpan ( const uint08 elapsed_nano_seconds)
inlineexplicitconstexpr

◆ TimeSpan() [6/9]

TimeSpan ( const fltp08 elapsed_seconds)
inlineexplicitconstexpr

◆ TimeSpan() [7/9]

TimeSpan ( const Time & start,
const Time & end )
inline

◆ TimeSpan() [8/9]

TimeSpan ( const Time & start,
const sint08 & elapsed_nano_seconds )
inlineconstexpr

◆ TimeSpan() [9/9]

TimeSpan ( const Time & start,
const fltp08 & elapsed_seconds )
inlineconstexpr

Member Function Documentation

◆ contains()

bool contains ( const Time & time) const

◆ elapsedDays()

sint08 elapsedDays ( ) const

◆ elapsedMilliseconds()

template<class t_type = fltp08>
t_type elapsedMilliseconds ( ) const
inlinenodiscardconstexpr

◆ elapsedMinutes()

fltp08 elapsedMinutes ( ) const
inlinenodiscardconstexpr

◆ elapsedMonths()

sint08 elapsedMonths ( ) const

◆ elapsedNanoseconds()

sint08 elapsedNanoseconds ( ) const
inlinenodiscardconstexpr

◆ elapsedPercent()

fltp08 elapsedPercent ( Time time,
bool clip_time ) const

◆ elapsedSeconds()

fltp08 elapsedSeconds ( ) const
inlinenodiscardconstexpr

◆ endTime()

Time endTime ( ) const
nodiscard

◆ getTimeString()

String getTimeString ( const String & format_string) const

◆ operator!=()

bool operator!= ( const TimeSpan & time) const
inlineconstexpr

◆ operator*() [1/2]

TimeSpan operator* ( const fltp08 & mult) const
inlineconstexpr

◆ operator*() [2/2]

TimeSpan operator* ( const sint08 & mult) const
inlineconstexpr

◆ operator*=() [1/2]

TimeSpan & operator*= ( const fltp08 & mult)
inlineconstexpr

◆ operator*=() [2/2]

TimeSpan & operator*= ( const sint08 & mult)
inlineconstexpr

◆ operator+()

TimeSpan operator+ ( const TimeSpan & other) const
inlineconstexpr

◆ operator+=()

TimeSpan & operator+= ( const TimeSpan & other)
inlineconstexpr

◆ operator-() [1/2]

TimeSpan operator- ( ) const
inlineconstexpr

◆ operator-() [2/2]

TimeSpan operator- ( const TimeSpan & other) const
inlineconstexpr

◆ operator-=()

TimeSpan & operator-= ( const TimeSpan & other)
inlineconstexpr

◆ operator/() [1/3]

TimeSpan operator/ ( const fltp08 & den) const
inlineconstexpr

◆ operator/() [2/3]

TimeSpan operator/ ( const sint08 & den) const
inlineconstexpr

◆ operator/() [3/3]

fltp08 operator/ ( const TimeSpan & time_2) const
inlineconstexpr

◆ operator<()

bool operator< ( const TimeSpan & other) const
inlineconstexpr

◆ operator<=()

bool operator<= ( const TimeSpan & other) const
inlineconstexpr

◆ operator==()

bool operator== ( const TimeSpan & time) const
inlineconstexpr

◆ operator>()

bool operator> ( const TimeSpan & other) const
inlineconstexpr

◆ operator>=()

bool operator>= ( const TimeSpan & other) const
inlineconstexpr

◆ setEndTime()

void setEndTime ( Time time)
inlineconstexpr

◆ setStartTime()

void setStartTime ( Time time)
inlineconstexpr

◆ startTime()

Time startTime ( ) const
inlinenodiscardconstexpr

Member Data Documentation

◆ m_elapsed_time

sint08 m_elapsed_time
protected

◆ m_start_time

Time m_start_time
protected

The documentation for this class was generated from the following files: