Commit Graph

13 Commits

Author SHA1 Message Date
Matias Fernandez
57c14f6a9b Allow custom sleep on tsc fallback.
This gives the user more control over the spectrum of precision vs. load time on Windows. Spall's output with much lower sleep times is still useful in my experience.

NOTE: A better API might be to allow the user to pass the freq as a param to "create_context" in case they already paid for it beforehand, but this seems fine for now.
2023-05-09 00:03:58 -04:00
Colin Davidson
afaa5f2deb add null-impl for tsc_frequency for alt-platforms 2023-03-04 22:40:14 -08:00
Colin Davidson
c6f463b8c9 shuffle tsc around a little 2023-02-22 12:28:24 -08:00
Colin Davidson
8e5e43f335 add sleep-fallback and invariant check 2023-02-21 17:48:49 -08:00
Colin Davidson
91dccf8d62 more function name changes 2023-02-21 06:46:36 -08:00
Colin Davidson
f860b09065 use the libc call on darwin so sysctlbyname works 2023-02-21 05:38:07 -08:00
Colin Davidson
051c9cb564 begin adding tsc frequency getters 2023-02-19 20:08:11 -08:00
gingerBill
fb49841b1d Remove strings dependency from core:sys/windows 2022-06-02 13:02:16 +01:00
gingerBill
0d258e8b55 Make many package time procedures use "contextless" calling convention 2021-10-11 20:08:38 +01:00
Jeroen van Rijn
637685316d Add xxhash tests to CI. 2021-09-09 16:01:44 +02:00
Jeroen van Rijn
f16e98b074 Add xxhash benchmark. 2021-09-09 15:26:57 +02:00
gingerBill
251da264ed Remove unneeded semicolons from the core library 2021-08-31 22:21:13 +01:00
gingerBill
9e8c46b8de Add time.Tick for performance related timings 2021-01-09 01:08:16 +00:00