home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
419
/
elapsedt.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
812b
|
20 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION Sec2Time$ (Seconds&)
DECLARE FUNCTION Time2Sec& (TimeSt$)
FUNCTION ElapsedTime$ (TimeStart$, TimeStop$)
LaterTime& = Time2Sec&(TimeStop$)
EarlierTime& = Time2Sec&(TimeStart$)
IF LaterTime& < EarlierTime& THEN
Elapsed& = (LaterTime& + 86400) - EarlierTime&
ELSE
Elapsed& = LaterTime& - EarlierTime&
END IF
ElapsedTime$ = Sec2Time$(Elapsed&)
END FUNCTION