mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-11 04:52:14 +00:00
The timer object can track latencies in lua code and is helpful for ad-hoc, explicit "profiling" in your policy script: the latencies are exported via a prometheus histogram.
234 B
234 B
kumo.time.sleep(SECONDS)
{{since('dev')}}
Sleeps the current task for the specified number of seconds. The value can be either an integer or a floating point value, the latter can be used to specify fractional duration values.