| timer
Index
void AddTime(
struct timeval * dest,
struct timeval * src );
Add two timeval's together. The result will be the sum
dest + src --> dest.
The values of A0 and A1 will not be changed.
dest - Destination timeval.
src - Source timeval.
dest will contain (src + dest).
This function can be called from Interrupts.
void BeginIO(
struct timerequest * timereq );
BeginIO() will perform a timer.device command. It is normally
called from within DoIO() and SendIO().
INPUT
timereq - The request to process.
The requested message will be processed.
This function is safe to call from interrupts.
exec/Abort(), exec/SendIO(), exec/DoIO()
LONG CmpTime(
struct timeval * dest,
struct timeval * src );
CmpTime() will compare two timeval's for magnitude, and return
which is the larger.
dest - Destination timeval
src - Source timeval
< 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)
This function is safe to call from interrupts.
The registers A0 and A1 may not be preserved.
void GetSysTime(
struct timeval * dest );
GetSysTime() will fill in the supplied timeval with the current
system time.
dest - A pointer to the timeval you want the time stored in.
The timeval "dest" will be filled with the current system time.
This function is safe to call from interrupts.
TR_GETSYSTIME, TR_SETSYSTIME
ULONG ReadEClock(
struct EClockVal * dest );
ReadEClock() reads current value of E-Clock and stores
it in the destination EClockVal structure passed as
argument. It also returns the frequency of EClock of the
system.
This call is supposed to be very fast.
dest - Destination EClockVal
The EClock frequency (tics/s)
This function is safe to call from interrupts.
void SubTime(
struct timeval * dest,
struct timeval * src );
SubTime() will subtract the src timeval from the destination
timeval, ie "dest - src --> dest".
dest - Destination timeval
src - Source timeval
The timeval dest will contain the sum (dest - src).
This function is safe to call from interrupts.
May not preserve registers.
|