#include <TimeValue.h>
Public Member Functions | |
TimeValue (long sec=0, long usec=0) | |
Constructor. | |
TimeValue | operator- (TimeValue &tm) |
Time subtraction. | |
TimeValue | operator+ (TimeValue &tm) |
Time addition. | |
TimeValue | operator= (double time) |
Convert double type into time type. | |
double | toDouble () |
Convert time type into double type. | |
int | sign () |
Sign judgment. |
This is a class to hold the specified time value. This class provides the operations for various calculations of the time value.
TimeValue::TimeValue | ( | long | sec = 0 , |
|
long | usec = 0 | |||
) | [inline] |
Constructor.
Constructor Initialize with the specified second and micro second.
sec | Second(The default value:0) | |
usec | Micro second(The default value:0) |
Time subtraction.
Subtract the time given by the argument from the set time.
tm | Subtracted time |
Time addition.
Add the time given by the argument to the set time.
tm | Added time |
TimeValue TimeValue::operator= | ( | double | time | ) | [inline] |
Convert double type into time type.
Convert double type given by the argument into time type.
time | the original value |
double TimeValue::toDouble | ( | ) | [inline] |
Convert time type into double type.
Convert held information into double type.
int TimeValue::sign | ( | ) | [inline] |
Sign judgment.
Judge sign of the held contents