* autoload.cc (timeGetDevCaps): Define new autoload function.
(timeGetTime): Ditto. (timeBeginPeriod): Ditto. (timeEndPeriod): Ditto. * hires.h (hires_base): New class. Renamed from hires. (hires_us): New class. (hires_ms): New class. * strace.cc (strace::microseconds): Use hires_us class. * times.cc (gettimeofday): Use hires-ms class. (hires_us::prime): Renamed from hires::prime. (hires_us::usecs): Renamed from hires:usecs. (hires_ms::prime): New method. (hires_ms::usecs): New method. (hires_ms::~hires_ms): New destructor.
This commit is contained in:
@ -63,7 +63,7 @@ strace::hello()
|
||||
int
|
||||
strace::microseconds ()
|
||||
{
|
||||
static hires now;
|
||||
static hires_us now;
|
||||
return (int) now.usecs (true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user