Returns the elapsed Seconds to a former assigned time-stamp.
Target = SECELAPSED(TimeStamp)
A variable (LONG), that is assigned with the elapsed Seconds
A variable (LONG), which holds a timestamp like the output of an earlier called SecOfDay()
The Function works with the SOFTCLOCK variables _sec, _min and _hour and considers a jump over midnight and gives a correct result within 24 hour between two events.
The Return-Value is in the range of 0 to 86399.
Date and Time Routines , SecOfDay , SysSecElapsed
Lsecofday = Secofday()
_hour = _hour + 1
Lvar1 = Secelapsed(lsecofday)