3 //using namespace Base;
12 Time::Stamp
Time::Now()
20 time
= tp
.tv_sec
* 1000 + tp
.tv_usec
* 0.001;
26 void Time::Sleep(unsigned int millisecs
)
31 struct timespec req
, rem
;
33 req
.tv_nsec
= millisecs
* 1000000;
34 if (nanosleep(&req
, &rem
) == -1)