Cicode Programming Reference > Cicode Function Categories > Time and Date Functions Introduction > SysTimeDelta

SysTimeDelta

Calculates the time difference between a start time and the current time, and updates the start time to the current time. You can time continuous events in a single operation. See the SysTime() function for information on its use.

Time/date functions can only be used with dates between 1980 and 2035. You should check that the date you are using is valid with Cicode similar to the following:

IF StrToDate(Arg1)>0 THEN
...
ELSE
...
END

Syntax

SysTimeDelta(Start)

Start:

The start time returned from the SysTime() function.

Return Value

The time difference from a start time and the current time.

Related Functions

SysTime

Example

Start=SysTime();
! Gets the current time.
... Delay1=SysTimeDelta(Start);
! Sets Delay1 to the time difference from Start.
... Delay2=SysTimeDelta(Start);
! Sets Delay2 to the time difference from the last SysTimeDelta() call.

See Also

Time/Date Functions