7 #ifdef __linux__ // compiling on a Linux system?
31 return static_cast<unsigned int>(seconds * 1000000);
36 return static_cast<unsigned int>(seconds * 1000);
41 return static_cast<unsigned int>(seconds);
53 gettimeofday(&temp, NULL);
54 seconds =
static_cast<double>(temp.tv_sec) + (static_cast<double>(temp.tv_usec)/1000000.0f);
58 LARGE_INTEGER perfCounter;
59 LARGE_INTEGER perfFrequency;
61 QueryPerformanceFrequency(&perfFrequency);
63 QueryPerformanceCounter(&perfCounter);
64 seconds = (((double)perfCounter.QuadPart) / ((double) perfFrequency.QuadPart));
Time operator-(const Time &initialTime) const
static const Time & NOW()
Returns current time.
Time()
Creates an unitialized object.
Header file for V-ART class "Time".
std::ostream & operator<<(std::ostream &output, const Joint::DofID &dofId)
void Set()
Set to current time.
double seconds
Number of seconds in elapsed time.
unsigned int WholeMicroseconds() const
Returns the number of whole microseconds in elapsed time.
unsigned int WholeSeconds() const
Returns the number of whole seconds in elapsed time.
unsigned int WholeMilliseconds() const
Returns the number of whole miliseconds in elapsed time.
Elapsed time representation.