This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.

Time

~import std/time

Koru Standard Library: Time

time.kz · 5 tors · ~[comptime]· ~[runtime]

Koru Standard Library: Time Timing primitives for measuring code execution. Usage: import std/time import std/io std/time:now(): start |> do_work() |> std/time:elapsed(start: start): d |> std/io:print.ln("work: {{ d.ms:f }}ms")

sleep-ms

runtime koru_std/time.kz:91

sleep-s

runtime koru_std/time.kz:98