(C) 1998 AROS - The Amiga Research OS


NAME
#include <devices/timer.h>
#include <proto/timer.h>

LONG CmpTime (dest , src)

LOCATION
In TimerBase at offset 9

SYNOPSIS
struct timeval * dest
struct timeval * src

FUNCTION
CmpTime() will compare two timeval's for magnitude, and return which is the larger.

INPUTS
dest
Destination timeval
src
Source timeval

RESULT
< 0 if dest has more time than src (ie dest > src) = 0 if dest and src are the same (ie dest == src) > 0 if dest has less time than src (ie dest < src)

EXAMPLE

SEE ALSO
AddTime(), SubTime()

NOTES
This function is safe to call from interrupts.

BUGS
The registers A0 and A1 may not be preserved.

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
29.01.1998 iaint
First try at timer.device - probably wont work...see email for details