Oboe
A library for creating real-time audio apps on Android
|
Static Public Member Functions | |
static int64_t | getNanoseconds (clockid_t clockId=CLOCK_MONOTONIC) |
static int | sleepUntilNanoTime (int64_t nanoTime, clockid_t clockId=CLOCK_MONOTONIC) |
static int | sleepForNanos (int64_t nanoseconds, clockid_t clockId=CLOCK_REALTIME) |
|
inlinestatic |
Sleep for the specified number of nanoseconds in real-time. Return immediately with 0 if a negative nanoseconds is specified.
nanoseconds | time to sleep |
clockId | CLOCK_REALTIME is default |
|
inlinestatic |
Sleep until the specified time.
nanoTime | time to wake up |
clockId | CLOCK_MONOTONIC is default |