2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: SubTime - subtract two timevals from each other.
9 #include <devices/timer.h>
11 #include "timer_macros.h"
13 /*****************************************************************************
16 #include <devices/timer.h>
17 #include <proto/timer.h>
19 AROS_LH2(void, SubTime
,
22 AROS_LHA(struct timeval
*, dest
, A0
),
23 AROS_LHA(struct timeval
*, src
, A1
),
26 struct Device
*, TimerBase
, 8, Timer
)
29 SubTime() will subtract the src timeval from the destination
30 timeval, ie "dest - src --> dest".
33 dest - Destination timeval
37 The timeval dest will contain the sum (dest - src).
40 This function is safe to call from interrupts.
45 May not preserve registers.
53 18-02-1997 iaint Implemented.
55 *****************************************************************************/