Timer object methods
| Method | Description | Sample |
|---|---|---|
| timer:getTime() | Returns the current time in milliseconds. | now = timer:getTime() |
| timer:sleep(duration) | Sleeps for the specified duration in milliseconds. | timer:sleep(2000) |
| Method | Description | Sample |
|---|---|---|
| timer:getTime() | Returns the current time in milliseconds. | now = timer:getTime() |
| timer:sleep(duration) | Sleeps for the specified duration in milliseconds. | timer:sleep(2000) |