summaryrefslogtreecommitdiff
path: root/lib/std/sleep.myr
blob: 6422a44fc33d6279ebc470a041e97a865a191032 (plain)
1
2
3
4
5
6
7
8
9
10
11
use "syswrap-ss"
use "types"

pkg std =
	const usleep	: (tm : time -> void)
;;

const usleep = {tm
	nanosleep((tm * 1000 : uint64))
}