2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: GetSysTime() - Find out what time it is.
9 #include <proto/exec.h>
11 #include <devices/timer.h>
12 #include <proto/timer.h>
14 /* See rom/timer/getsystime.c for documentation */
16 AROS_LH1(void, GetSysTime
,
17 AROS_LHA(struct timeval
*, dest
, A0
),
18 struct Device
*, TimerBase
, 11, Timer
)
22 struct TimerBase
*timerBase
= (struct TimerBase
*)TimerBase
;
25 EClockUpdate(TimerBase
);
26 dest
->tv_secs
= timerBase
->tb_CurrentTime
.tv_secs
;
27 dest
->tv_micro
= timerBase
->tb_CurrentTime
.tv_micro
;