2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
9 #include <devices/timer.h>
10 #include <proto/timer.h>
11 #include "intuition_intern.h"
14 /*****************************************************************************
17 #include <proto/intuition.h>
19 AROS_LH2(void, CurrentTime
,
22 AROS_LHA(ULONG
*, seconds
, A0
),
23 AROS_LHA(ULONG
*, micros
, A1
),
26 struct IntuitionBase
*, IntuitionBase
, 14, Intuition
)
29 Copies the current time into the argument pointers.
32 seconds - ptr to ULONG varaible which will contain the current
33 seconds after function call
34 micros - ptr to ULONG varaible which will contain the current
35 microseconds after function call
38 Copies the time values to the memory the arguments point to
39 Return value is not set.
42 Makes use of timer.library/timer.device
49 timer.device/TR_GETSYSTIME
53 *****************************************************************************/
57 struct Library
*TimerBase
= GetPrivIBase(IntuitionBase
)->TimerBase
;
62 if (seconds
) *seconds
= tv
.tv_secs
;
63 if (micros
) *micros
= tv
.tv_micro
;