|
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) |
|
◆ sleepForNanos()
static int oboe::AudioClock::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.
- Parameters
-
nanoseconds | time to sleep |
clockId | CLOCK_REALTIME is default |
- Returns
- 0 or a negative error, eg. -EINTR
◆ sleepUntilNanoTime()
static int oboe::AudioClock::sleepUntilNanoTime |
( |
int64_t | nanoTime, |
|
|
clockid_t | clockId = CLOCK_MONOTONIC ) |
|
inlinestatic |
Sleep until the specified time.
- Parameters
-
nanoTime | time to wake up |
clockId | CLOCK_MONOTONIC is default |
- Returns
- 0 or a negative error, eg. -EINTR
The documentation for this class was generated from the following file: