1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-12-07 05:53:26 +00:00
Files
AROS-v0/rom/timer/subtime.c
Matthias Rustler a131b2b09f rom: detabbed
2021-05-02 14:00:32 +02:00

62 lines
1.2 KiB
C

/*
Copyright (C) 1995-2011, The AROS Development Team. All rights reserved.
Desc: SubTime - subtract two timevals from each other.
*/
#include <devices/timer.h>
#include "timer_macros.h"
/*****************************************************************************
NAME */
#include <devices/timer.h>
#include <proto/timer.h>
AROS_LH2(void, SubTime,
/* SYNOPSIS */
AROS_LHA(struct timeval *, dest, A0),
AROS_LHA(struct timeval *, src, A1),
/* LOCATION */
struct Device *, TimerBase, 8, Timer)
/* FUNCTION
SubTime() will subtract the src timeval from the destination
timeval, ie "dest - src --> dest".
INPUTS
dest - Destination timeval
src - Source timeval
RESULT
The timeval dest will contain the sum (dest - src).
NOTES
This function is safe to call from interrupts.
EXAMPLE
BUGS
May not preserve registers.
SEE ALSO
AddTime(), CmpTime()
INTERNALS
HISTORY
18-02-1997 iaint Implemented.
*****************************************************************************/
{
AROS_LIBFUNC_INIT
SUBTIME(dest, src);
AROS_LIBFUNC_EXIT
} /* SubTime */