Added quick implementation of real_time_clock() and real_time_clock_usecs() -
it might even be correct, but we also might want to have this stuff somewhere else (libroot). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eb04c7678e
commit
36c3931c38
@ -97,6 +97,22 @@ set_real_time_clock(uint32 currentTime)
|
||||
}
|
||||
|
||||
|
||||
uint32
|
||||
real_time_clock(void)
|
||||
{
|
||||
// ToDo: implement me - they might be used directly from libroot/os/time.c
|
||||
return (sBootTime + system_time()) / 1000000;
|
||||
}
|
||||
|
||||
|
||||
bigtime_t
|
||||
real_time_clock_usecs(void)
|
||||
{
|
||||
// ToDo: implement me - they might be used directly from libroot/os/time.c
|
||||
return sBootTime + system_time();
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark -
|
||||
// public userland API
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user