Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
benchmark_timestamp(3)		 Arcan Lua API		benchmark_timestamp(3)

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
       usable  for  tracing and	benchmarking purposes. The accuracy and	preci-
       sion may	vary depending on if benchmark trace data  collection  is  en-
       abled 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: mi-
       croseconds in system clock. Selecting an	invalid	stratum	is a  terminal
       state transition.

NOTES
       1      As the name implies, this	is primarily intended for benchmarking
	      purposes.	Real-world timekeeping cases should be avoided if pos-
	      sible as the API	does not contain sufficient functions for han-
	      dling  the  usecases  that appear	when dealing with locales, ad-
	      justments	etc.

system				  April	2025		benchmark_timestamp(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=benchmark_timestamp&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help