Public Member Functions | Static Public Member Functions | Protected Attributes
MAKLogger::DtRelativeTime Class Reference

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:

List of all members.

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

Detailed Description

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.


Member Function Documentation

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.

Exceptions:
DtInvalidInputif timeString is not formatted correctly.

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

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)