TIM
Task Time in Hours and Decimal Hours
This numeric system variable returns the time currently being used by the task in hours and decimal hours, which may or may not be the same as the system time.
Syntax
Section titled “Syntax”TIMRemarks
Section titled “Remarks”The output is a numeric value that may have significance up to PRECISION 6 as HH.hhhhhh.
The time is based upon a 24-hour system (0.000000 to 23.999999 representing 00:00:00 to 23:59:59.9964) with 0.0 representing midnight and 12.0 representing noon.
The time variable is maintained by the operating system and is updated every minute, second, or 10th of a second depending on the capability of the system clock in the system being used. One 10th of a second translates into .0000011574+ hours.
Terminating a task with the RELEASE directive resets the task value for TIM to the system value for TIM.
A time that is unique to the task and independent of the system-wide time can be set using the SETTIME directive. This task time affects only the task in which it was set. The system time maintained by the operating system remains unaffected for all other tasks.
Examples
Section titled “Examples”LET T = TIM (at 11:30 A.M.)assigns T the value 11.500000. At 11:45 P.M., T is assigned the value 23.750000.
See also
Section titled “See also”SETTIME directive
From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF