MCPcopy Create free account
hub / github.com/audeering/opensmile / clock_gettime

Function clock_gettime

src/core/smileCommon.cpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106#ifdef __MACOS
107int clock_gettime(int clock_id, struct timespec *tp)
108{
109 struct timeval tv;
110 int retval = gettimeofday (&tv, NULL);
111 if (retval == 0)
112 TIMEVAL_TO_TIMESPEC (&tv, tp); // Convert into `timespec'.
113 return retval;
114}
115#endif
116
117#define MIN_CHUNK 64

Callers 2

smileCondTimedWaitFunction · 0.85
smileCondTimedWaitWMtxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected