40 return static_cast<long>(1000.0*(
static_cast<double>((clock()-
_ct))/
static_cast<double>(CLOCKS_PER_SEC)));
52 gettimeofday(&
_ct, 0);
57 gettimeofday(&end, 0);
58 return (end.tv_sec*1000+end.tv_usec/1000) - (
_ct.tv_sec*1000+
_ct.tv_usec/1000);
93 time2sleep.
tv_nsec = time * 1000 * 1000;
94 nanosleep(&time2sleep, NULL);
long _ElapsedTime() const
Platform specific implementation of ElapsedTime().
void WaitUntilElapsed() const
void Set_And_Start(long timeout)