aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2023-02-14 17:23:23 +0100
committerJohn MacFarlane <[email protected]>2023-02-14 09:44:20 -0800
commit45367cdd37f34ee84bed4f024e33d2ec659fefd6 (patch)
tree830ea3095159fbdd5150be5987594a217e6832e8 /doc
parent351a8e6c7ce6ccd20eb62bd43f7f5cc9048c65d8 (diff)
Lua: add new function pandoc.system.cputime.
The function returns the CPU time consumed by pandoc and can be used to benchmark Lua computations.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md10
1 files changed, 10 insertions, 0 deletions
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 ()`