From 45367cdd37f34ee84bed4f024e33d2ec659fefd6 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 14 Feb 2023 17:23:23 +0100 Subject: Lua: add new function pandoc.system.cputime. The function returns the CPU time consumed by pandoc and can be used to benchmark Lua computations. --- doc/lua-filters.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 4309f5cf1..efaeb6343 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -4890,6 +4890,16 @@ The operating system on which the program is running. ## Functions +### cputime {#pandoc.system.cputime} + +`cputime ()` + +Returns the number of picoseconds CPU time used by the current +program. The precision of this result may vary in different +versions and on different platforms. + +*Since*: 3.1.1 + ### environment {#pandoc.system.environment} `environment ()` -- cgit v1.2.3