The Be Book The Kernel Kit The Kernel Kit Index

Time Information

Declared in:  be/kernel/OS.h
Library: libroot.so
Summary:  more...


The following functions set and get the system clock.


Time Functions


real_time_clock() , real_time_clock_usecs() , set_real_time_clock()

uint32 real_time_clock (void)
bigtime_t real_time_clock_usecs (void)
void set_real_time_clock (int32 secs_since_jan1_1970)

real_time_clock() returns the number of seconds that have elapsed since January 1, 1970.

real_time_clock_usecs() measures the same time span in microseconds.

set_real_time_clock() sets the value that the other two functions refer to.


system_time()

bigtime_t system_time(void)

Returns the number of microseconds that have elapsed since the computer was booted.


The Be Book The Kernel Kit The Kernel Kit Index

The Be Book,
...in lovely HTML...
for BeOS Release 5.

Copyright © 2000 Be, Inc. All rights reserved..