Remove old static util-time documentation.

This commit is contained in:
Dominik Pantůček 2023-07-04 20:54:24 +02:00
parent cf4211d1ba
commit a5afb25dd7
3 changed files with 22 additions and 26 deletions

View file

@ -6,13 +6,22 @@ These are various utility modules for other HackerBase libraries.
(import util-time)
Compatibility time module for <5.2 and >=5.3 versions of CHICKEN.
Compatibility module for the differences between chicken scheme
version 5.2 and earlier and 5.3 and on.
### current-util-milliseconds [procedure]
(current-util-milliseconds)
Returns the current milliseconds counter that can be used for high-precision time measurements.
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```.
### seconds->iso-date-string [procedure]

View file

@ -529,25 +529,3 @@ A unifying module for compound data structures tagging.
Creates a unique and collision free symbol to identify compound data
structures based on lists and pairs.
### 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```.
(today/iso)
Returns the current date as string in ISO YYYY-MM-DD format.

View file

@ -29,7 +29,8 @@
(module*
util-time
#:doc ("Compatibility time module for <5.2 and >=5.3 versions of CHICKEN.")
#:doc ("Compatibility module for the differences between chicken scheme
version 5.2 and earlier and 5.3 and on.")
(
current-util-milliseconds
@ -43,7 +44,15 @@
(chicken format))
(define/doc (current-util-milliseconds)
("Returns the current milliseconds counter that can be used for high-precision time measurements.")
("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```.")
(cond-expand
(chicken-5.0
(current-milliseconds))