a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Devices:
 timer.device
  --background--
  AbortIO
  AddTime
  CmpTime
  GetSysTime
  ReadEClock
  SubTime
  TR_ADDREQUEST
  TR_GETSYSTIME
  TR_SETSYSTIME
Include
GuruMeditation
Docs » Autodocs » timer.device » CmpTime

NAME

	CmpTime -- Compare two timeval structures.

SYNOPSIS

	result = CmpTime( Dest, Source )
D0 A0 A1
LONG CmpTime( struct timeval *, struct timeval *);

FUNCTION

	This routine compares timeval structures
A0 and A1 will be left unchanged

INPUTS

	Dest, Source -- pointers to timeval structures.

RESULT

	result will be   0 if Dest has same time as source
-1 if Dest has more time than source
+1 if Dest has less time than source

NOTES

	This function may be called from interrupts.

SEE ALSO

timer.device/AddTime(), timer.device/SubTime()

BUGS

	Older version of this document had the sense of the return
codes wrong; the code hasn't changed but the document has.

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Defjam

TRSI
AOA
DJ
AYS

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se