Returns the elapsed Seconds to a earlier assigned system-time-stamp.
Target = SysSecElapsed(SystemTimeStamp)
A variable (LONG), that is assigned with the elapsed Seconds
A variable (LONG), which holds a Systemtimestamp like the output of an earlier called SysSec()
The Return-Value is in the Range of 0 to 2147483647. The Function is valid from 2000-01-01 to 2068-01-19 at 03:14:07. In the year 2068 a LONG – overflow will occur.
The difference to the pair DayOfSec and SecElapsed is, that SysSec and SysSecElapsed can be used for event distances larger than 24 hours.
Config Clock = Soft
Dim Lsystemtimestamp As Long
Dim Lsystemsecondselapsed As Long
Lsystemtimestamp = Syssec()
Print "Now it's " ; Lsystemtimestamp ; " seconds past 2000-01-01 00:00:00"
' do other stuff
' some time later
Lsystemsecondselapsed = Syssecelapsed(lsystemtimestamp)
Print "Now it's " ; Lsystemsecondselapsed ; " seconds later"