mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-03-04 21:25:55 +08:00
26 lines
310 B
Markdown
26 lines
310 B
Markdown
![]() |
# time
|
||
|
|
||
|
### epoch
|
||
|
|
||
|
```ruby
|
||
|
time() -> Number
|
||
|
```
|
||
|
|
||
|
Returns the number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).
|
||
|
|
||
|
### sleep
|
||
|
|
||
|
```ruby
|
||
|
sleep(t:num) -> Number
|
||
|
```
|
||
|
|
||
|
Sleep for [t] milliseconds.
|
||
|
|
||
|
### clock
|
||
|
|
||
|
```ruby
|
||
|
clock() -> Number
|
||
|
```
|
||
|
|
||
|
Returns the number of clocks passed divied by CLOCKS_PER_SEC.
|