
use coro

+ fn sleep_ns(ns: uint) {
    let current = coro:current_coro
    if isset(current) {
        current.sleep_until = microtime() + ns
        coro:g_coro_sleepers.append(current)
        current.block()
    }
}

+ fn sleep_ms(ms: uint) {
    sleep_ns(ms * 1000)
}

