MCPcopy Create free account
hub / github.com/android/ndk-samples / systemnanotime

Function systemnanotime

native-codec/app/src/main/cpp/native-codec-jni.cpp:83–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81static mylooper* mlooper = NULL;
82
83int64_t systemnanotime() {
84 timespec now;
85 clock_gettime(CLOCK_MONOTONIC, &now);
86 return now.tv_sec * 1000000000LL + now.tv_nsec;
87}
88
89void doCodecWork(workerdata* d) {
90 ssize_t bufidx = -1;

Callers 1

doCodecWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected