Jakt toolchain for TempleOS development
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
unholy-jakt/time.jakt

13 lines
289 B

import extern c "time.h" {
extern function time_jiffies() -> i64
extern function time_sleep(anon duration: i64)
}
struct Time {
function jiffies() throws -> i64 {
return time_jiffies()
}
function sleep(anon duration: i64) {
time_sleep(duration)
}
}