Oboe
A library for creating real-time audio apps on Android
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
oboe::AudioClock Class Reference

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)
 

Member Function Documentation

◆ 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
nanosecondstime to sleep
clockIdCLOCK_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
nanoTimetime to wake up
clockIdCLOCK_MONOTONIC is default
Returns
0 or a negative error, eg. -EINTR

The documentation for this class was generated from the following file: