Document the time module.
This commit is contained in:
parent
9e1291216d
commit
dc82ba720c
1 changed files with 17 additions and 0 deletions
17
doc/utils.md
17
doc/utils.md
|
@ -73,3 +73,20 @@ remainder with leading whitespace removed.
|
||||||
### Tag
|
### Tag
|
||||||
|
|
||||||
### Time
|
### Time
|
||||||
|
|
||||||
|
(import util-time)
|
||||||
|
|
||||||
|
Compatibility module for the differences between chicken scheme
|
||||||
|
version 5.2 and earlier and 5.3 and on.
|
||||||
|
|
||||||
|
(current-util-milliseconds)
|
||||||
|
|
||||||
|
Returns the number of milliseconds since process startup.
|
||||||
|
|
||||||
|
Under chicken scheme <5.3 it uses ```current-milliseconds``` and for
|
||||||
|
chicken scheme >=5.3 it uses ```current-process-milliseconds```.
|
||||||
|
|
||||||
|
Without this module compilation with ```current-milliseconds```
|
||||||
|
results in warnings on chicken scheme >=5.3 and compilation under
|
||||||
|
chicken scheme <5.3 results in error with
|
||||||
|
```current-process-milliseconds```.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue