Time Module Documentation
IMPORT MOD "TIME"
The Time module provides functions for getting the current time and pausing execution for a specified duration.
Table of Contents
Functions
TIME
Returns the current time in milliseconds since the UNIX epoch (January 1, 1970).
Parameters: None
Returns:
Number
: The current time in milliseconds
Example Usage:
current_time <- TIME()
DISPLAY(current_time)
SLEEP
Pauses the execution of the program for a specified number of milliseconds.
Parameters:
duration: Number
The duration to sleep in milliseconds.
Returns:
NULL
Example Usage:
DISPLAY("Sleeping for 2 seconds...")
SLEEP(2000)
DISPLAY("Awake now!")