|
OpenRTM-aist
1.1.2
|
#include <TimeValue.h>
Public Member Functions | |
| TimeValue (long sec=0, long usec=0) | |
| Constructor. More... | |
| TimeValue (double timeval) | |
| Constructor. More... | |
| long int | sec () const |
| Get value of second time scale. More... | |
| long int | usec () const |
| Get value of micro second time scale. More... | |
| TimeValue | operator- (TimeValue &tm) |
| Time subtraction. More... | |
| TimeValue | operator+ (TimeValue &tm) |
| Time addition. More... | |
| TimeValue | operator= (double time) |
| Convert double type into time type. More... | |
| operator double () const | |
| Convert time type into double type. More... | |
| int | sign () const |
| Sign judgment. More... | |
| void | normalize () |
| Normalize. More... | |
TimeValue class.
| coil::TimeValue::TimeValue | ( | long | sec = 0, |
| long | usec = 0 |
||
| ) |
Constructor.
Constructor Initialize with the specified second and micro second.
| sec | Second(The default value:0) |
| usec | Micro second(The default value:0) |
| coil::TimeValue::TimeValue | ( | double | timeval | ) |
Constructor.
Constructor Initialize with the specified second and micro second.
| timeval | (Second * 1000000 + Micro second) |
| void coil::TimeValue::normalize | ( | ) |
| coil::TimeValue::operator double | ( | ) | const |
Convert time type into double type.
Convert held information into double type.
Time addition.
Add the time given by the argument to the set time.
| tm | Added time |
Referenced by usec().
Time subtraction.
Subtract the time given by the argument from the set time.
| tm | Subtracted time |
Referenced by usec().
| TimeValue coil::TimeValue::operator= | ( | double | time | ) |
Convert double type into time type.
Convert double type given by the argument into time type.
| time | the original value |
Referenced by usec().
|
inline |
Get value of second time scale.
Get value of second time scale.
Referenced by RTC::RingBuffer< DataType >::read(), setTimestamp(), coil::sleep(), and RTC::RingBuffer< DataType >::write().
| int coil::TimeValue::sign | ( | ) | const |
Sign judgment.
Judge sign of the held contents
Referenced by usec().
|
inline |
Get value of micro second time scale.
Get value of micro second time scale.
References normalize(), operator+(), operator-(), operator=(), and sign().
Referenced by RTC::RingBuffer< DataType >::read(), setTimestamp(), coil::sleep(), and RTC::RingBuffer< DataType >::write().
1.8.11