![]() |
MAK Data Logger API Documentation for HLA
|
Relative Time, an elapsed duration of time, no implied measurement, could be seconds/cycles or ticks etc, relative time, does not indicate what moment it is relative too. More...
Collaboration diagram for MAKLogger::DtRelativeTime:Public Member Functions | |
| DtRelativeTime (double reltime) | |
| Initialize relative time to double time value. More... | |
| DtRelativeTime (const DtAbsoluteTime &time1, const DtAbsoluteTime &time2) | |
| Initialize relative time to time2 - time1. More... | |
| DtRelativeTime | operator+ (const DtRelativeTime &relTime) const |
| Calculate the sum of the relative times. More... | |
| DtRelativeTime | operator- (const DtRelativeTime &relTime) const |
| Calculate the difference of the relative times. More... | |
| bool | operator== (const DtRelativeTime &) const |
| Check if time are the same. More... | |
| bool | operator!= (const DtRelativeTime &) const |
| bool | operator< (const DtRelativeTime &) const |
| bool | operator> (const DtRelativeTime &) const |
| bool | operator<= (const DtRelativeTime &) const |
| bool | operator>= (const DtRelativeTime &) const |
| double | hours () const |
| double | minutes () const |
| double | seconds () const |
| long | hourPart () const |
| Get just the hours (0-...) More... | |
| long | minutePart () const |
| Get just the minutes (0-59) More... | |
| long | secondPart () const |
| Get just the second part (0-59) More... | |
| long | milisecondPart () const |
| Get just the milisecond part (0 - 999) More... | |
| DtString | toString (int percision=0) const |
| Creates. More... | |
Static Public Member Functions | |
| static double | parseString (const DtString &timeString) |
| Parses a string to a double. More... | |
Protected Attributes | |
| double | myTime |
Relative Time, an elapsed duration of time, no implied measurement, could be seconds/cycles or ticks etc, relative time, does not indicate what moment it is relative too.
| MAKLogger::DtRelativeTime::DtRelativeTime | ( | double | reltime | ) |
Initialize relative time to double time value.
| MAKLogger::DtRelativeTime::DtRelativeTime | ( | const DtAbsoluteTime & | time1, |
| const DtAbsoluteTime & | time2 | ||
| ) |
Initialize relative time to time2 - time1.
| long MAKLogger::DtRelativeTime::hourPart | ( | ) | const |
Get just the hours (0-...)
| double MAKLogger::DtRelativeTime::hours | ( | ) | const |
| long MAKLogger::DtRelativeTime::milisecondPart | ( | ) | const |
Get just the milisecond part (0 - 999)
| long MAKLogger::DtRelativeTime::minutePart | ( | ) | const |
Get just the minutes (0-59)
| double MAKLogger::DtRelativeTime::minutes | ( | ) | const |
| bool MAKLogger::DtRelativeTime::operator!= | ( | const DtRelativeTime & | ) | const |
| DtRelativeTime MAKLogger::DtRelativeTime::operator+ | ( | const DtRelativeTime & | relTime | ) | const |
Calculate the sum of the relative times.
| DtRelativeTime MAKLogger::DtRelativeTime::operator- | ( | const DtRelativeTime & | relTime | ) | const |
Calculate the difference of the relative times.
| bool MAKLogger::DtRelativeTime::operator< | ( | const DtRelativeTime & | ) | const |
| bool MAKLogger::DtRelativeTime::operator<= | ( | const DtRelativeTime & | ) | const |
| bool MAKLogger::DtRelativeTime::operator== | ( | const DtRelativeTime & | ) | const |
Check if time are the same.
| bool MAKLogger::DtRelativeTime::operator> | ( | const DtRelativeTime & | ) | const |
| bool MAKLogger::DtRelativeTime::operator>= | ( | const DtRelativeTime & | ) | const |
|
static |
Parses a string to a double.
Value is a double rather than an absolute time since absolute time may not be negative.
| DtInvalidInput | if timeString is not formatted correctly. |
| long MAKLogger::DtRelativeTime::secondPart | ( | ) | const |
Get just the second part (0-59)
| double MAKLogger::DtRelativeTime::seconds | ( | ) | const |
| DtString MAKLogger::DtRelativeTime::toString | ( | int | percision = 0 | ) | const |
Creates.
|
protected |