diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2023-12-27 19:09:29 +0100 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2023-12-27 19:09:29 +0100 |
commit | 2ee6be705fde0eb68acec25915d2947de1207abb (patch) | |
tree | 05bb2acdbf538dad3603fc3bd1bbed377ac1fd50 /doc/quickjs.texi | |
parent | ffe81419fff5798b1983e30702c66d9ceb1f8a7a (diff) | |
download | quickjs-2ee6be705fde0eb68acec25915d2947de1207abb.tar.gz quickjs-2ee6be705fde0eb68acec25915d2947de1207abb.zip |
added os.now()
Diffstat (limited to 'doc/quickjs.texi')
-rw-r--r-- | doc/quickjs.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/quickjs.texi b/doc/quickjs.texi index 9eb6354..5731f04 100644 --- a/doc/quickjs.texi +++ b/doc/quickjs.texi @@ -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. |