#include <timer.h>
Public メソッド | |
TimeStamp () | |
set 0 to all time values | |
void | setCurrent () |
set current time using gettimeofday | |
long | sec () const |
accessor method | |
long | usec () const |
accessor method | |
long | getMSecDiffFrom (const TimeStamp &new_time) const |
calculate milli seconds difference from new_time to this | |
double | getRealMSecDiffFrom (const TimeStamp &new_time) const |
calculate milli seconds difference from new_time to this | |
Static Public メソッド | |
static void | calc_time_diff (const TimeStamp &old_time, const TimeStamp &new_time, long &sec_diff, long &usec_diff) |
static utility that calculate milli seconds difference |
long rcsc::TimeStamp::sec | ( | ) | const [inline] |
accessor method
long rcsc::TimeStamp::usec | ( | ) | const [inline] |
accessor method
long rcsc::TimeStamp::getMSecDiffFrom | ( | const TimeStamp & | new_time | ) | const |
calculate milli seconds difference from new_time to this
new_time | compared time stamp |
double rcsc::TimeStamp::getRealMSecDiffFrom | ( | const TimeStamp & | new_time | ) | const |
calculate milli seconds difference from new_time to this
new_time | compared time stamp |
void rcsc::TimeStamp::calc_time_diff | ( | const TimeStamp & | old_time, | |
const TimeStamp & | new_time, | |||
long & | sec_diff, | |||
long & | usec_diff | |||
) | [static] |
static utility that calculate milli seconds difference
old_time | compared time stamp | |
new_time | compared time stamp | |
sec_diff | reference to the solution variable | |
usec_diff | reference to the solution variable |