xref: /haiku/headers/private/kernel/real_time_clock.h (revision 5c9e6a3953923a7c60c3d9c69c4f935492f26997)
1 /*
2 ** Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved.
3 ** Distributed under the terms of the OpenBeOS License.
4 */
5 #ifndef _KERNEL_REAL_TIME_CLOCK_H
6 #define _KERNEL_REAL_TIME_CLOCK_H
7 
8 
9 #include <KernelExport.h>
10 
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 status_t rtc_init(kernel_args *ka);
17 	// Initialize the real-time clock.
18 
19 bigtime_t rtc_boot_time(void);
20 	// Returns the time at which the system was booted in microseconds since Jan 1, 1970.
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif /* _KERNEL_REAL_TIME_CLOCK_H */
27