mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-18 08:41:31 -07:00
spall instrumentation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
//+build linux
|
||||
//+no-instrumentation
|
||||
package linux
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//+no-instrumentation
|
||||
package linux
|
||||
|
||||
import "base:intrinsics"
|
||||
@@ -2383,7 +2384,11 @@ timer_delete :: proc "contextless" (timer: Timer) -> (Errno) {
|
||||
|
||||
// TODO(flysand): clock_settime
|
||||
|
||||
// TODO(flysand): clock_gettime
|
||||
clock_gettime :: proc "contextless" (clock: Clock_Id) -> (ts: Time_Spec, err: Errno) {
|
||||
ret := syscall(SYS_clock_gettime, clock, &ts)
|
||||
err = Errno(-ret)
|
||||
return
|
||||
}
|
||||
|
||||
// TODO(flysand): clock_getres
|
||||
|
||||
|
||||
Reference in New Issue
Block a user