mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
adjust func names
This commit is contained in:
@@ -5,7 +5,7 @@ package time
|
||||
import "core:intrinsics"
|
||||
import "core:sys/unix"
|
||||
|
||||
_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
_x86_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
perf_attr := unix.Perf_Event_Attr{}
|
||||
perf_attr.type = u32(unix.Perf_Type_Id.Hardware)
|
||||
perf_attr.config = u64(unix.Perf_Hardware_Id.Instructions)
|
||||
|
||||
@@ -5,7 +5,7 @@ package time
|
||||
import "core:intrinsics"
|
||||
import win32 "core:sys/windows"
|
||||
|
||||
_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
_x86_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
qpc_begin: win32.LARGE_INTEGER
|
||||
win32.QueryPerformanceCounter(&qpc_begin)
|
||||
tsc_begin := intrinsics.read_cycle_counter()
|
||||
|
||||
Reference in New Issue
Block a user