Something went wrong. Try again.
馃尡 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
12345678910111213141516171819202122now() -> int { t := new(Timespec) syscall(_clock_gettime, realtime, t) n := t.seconds * second + t.nanoseconds return n}sleep(nanoseconds int) { seconds := 0 if nanoseconds >= second { seconds = nanoseconds / second nanoseconds = nanoseconds % second } duration := new(Timespec) { seconds: seconds, nanoseconds: nanoseconds, } syscall(_nanosleep, duration)}