4 * Retrieve the system's uptime (number of clock ticks since system boot),
5 * real time (corrected number of clock ticks since system boot), and
6 * boot time (in number of seconds since the UNIX epoch).
9 getuptime(clock_t * uptime
, clock_t * realtime
, time_t * boottime
)
11 struct minix_kerninfo
*minix_kerninfo
;
13 minix_kerninfo
= get_minix_kerninfo();
15 /* We assume atomic 32-bit field retrieval. TODO: 64-bit support. */
17 *uptime
= minix_kerninfo
->kclockinfo
->uptime
;
19 *realtime
= minix_kerninfo
->kclockinfo
->realtime
;
21 *boottime
= minix_kerninfo
->kclockinfo
->boottime
;