GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
benchmark_timestamp(3) Arcan Lua API benchmark_timestamp(3)

benchmark_timestamp - Sample a timekeeping source.

number:timestamp
benchmark_timestamp( number:stratum=0 )

This function queries some system specific timestamp source for a value 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. The optional stratum argument specifies what kind of timekeeping source should be used, where the default value (0) will be some kind of monotonic system clock in millisecond resolution. 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.

1
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.
June 2022 system

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.