Something went wrong. Try again.
🌱 A minimal programming language and compiler. git.urbach.dev/cli/q
Something went wrong. Try again.
12345678910111213141516171819202122232425262728now() -> int { t := new(Timeval) syscall(_gettimeofday, t, 0, 0) n := t.seconds * second + t.microseconds * microsecond return n}
sleep(nanoseconds int) { seconds := 0
if nanoseconds >= second { seconds = nanoseconds / second nanoseconds = nanoseconds % second }
duration := new(Timespec) { seconds: seconds, nanoseconds: nanoseconds, }
System.nanosleep(duration, 0)}
extern { System { nanosleep(requested *Timespec, remaining *Timespec|nil) -> int }}