benchmark_timestamp(3)
β¨ benchmark_timestamp(3) β¨
okay so welcome to the Arcan Lua API page for benchmark_timestamp, bestie β we're sampling a timekeeping source and it's gonna be cute. π
π NAME π
benchmark_timestamp β sample a timekeeping source. π°οΈ
πΈ SYNOPSIS πΈ
number:timestamp
benchmark_timestamp( number:stratum=0 )
π¦ DESCRIPTION π¦
This function queries some system specific timestamp source for a value that's usable for tracing and benchmarking purposes. β¨
The accuracy and precision may vary depending on if benchmark trace data collection is enabled or not, as well as the security level of the application running. No cap, it's giving "depends on the situation." π
The optional stratum argument specifies what kind of timekeeping source should be used. The default value (0) will be some kind of monotonic system clock in millisecond resolution. π°οΈ The other defined stratum values are:
1β seconds since epoch (1970-01-01), non-monotonic. β³-1β microseconds in system clock. π¬
Selecting an invalid stratum is a terminal state transition. Like, literally terminal β do not do this unless you're trying to end the whole thing. ππ
π NOTES π
- As the name implies, this is primarily intended for benchmarking purposes. Real-world timekeeping cases should be avoided if possible as the API does not contain sufficient functions for handling the usecases that appear when dealing with locales, adjustments etc. π«Ά
mwah π this page is from the system manual, October 2026 edition, and the manual name is benchmark_timestamp(3) β bestie, you're all caught up. ππ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms