added os.now()

This commit is contained in:
Fabrice Bellard
2023-12-27 19:09:29 +01:00
parent ffe81419ff
commit 2ee6be705f
4 changed files with 32 additions and 44 deletions

View File

@@ -769,6 +769,11 @@ write_fd]} or null in case of error.
@item sleep(delay_ms)
Sleep during @code{delay_ms} milliseconds.
@item now()
Return a timestamp in milliseconds with more precision than
@code{Date.now()}. The time origin is unspecified and is normally not
impacted by system clock adjustments.
@item setTimeout(func, delay)
Call the function @code{func} after @code{delay} ms. Return a handle
to the timer.