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. | |
| DtRelativeTime (const DtAbsoluteTime &time1, const DtAbsoluteTime &time2) | |
| Initialize relative time to time2 - time1. | |
| DtRelativeTime | operator+ (const DtRelativeTime &relTime) const |
| Calculate the sum of the relative times. | |
| DtRelativeTime | operator- (const DtRelativeTime &relTime) const |
| Calculate the difference of the relative times. | |
| bool | operator== (const DtRelativeTime &) const |
| Check if time are the same. | |
| 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-...) | |
| long | minutePart () const |
| Get just the minutes (0-59) | |
| long | secondPart () const |
| Get just the second part (0-59) | |
| long | milisecondPart () const |
| Get just the milisecond part (0 - 999) | |
| DtString | toString (int percision=0) const |
| Creates. | |
Static Public Member Functions | |
| static double | parseString (const DtString &timeString) |
| Parses a string to a double. | |
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.
| static double MAKLogger::DtRelativeTime::parseString | ( | const DtString & | timeString | ) | [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. |