From dc82ba720c42bf09199c819c2d75920574fcbafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Sat, 8 Apr 2023 22:27:39 +0200 Subject: [PATCH] Document the time module. --- doc/utils.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/utils.md b/doc/utils.md index ea7a6ea..dd8e17e 100644 --- a/doc/utils.md +++ b/doc/utils.md @@ -73,3 +73,20 @@ remainder with leading whitespace removed. ### Tag ### 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```.