Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
81
static mylooper* mlooper = NULL;
82
83
int64_t systemnanotime() {
84
timespec now;
85
clock_gettime(CLOCK_MONOTONIC, &now);
86
return now.tv_sec * 1000000000LL + now.tv_nsec;
87
}
88
89
void doCodecWork(workerdata* d) {
90
ssize_t bufidx = -1;
Callers
1
doCodecWork
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected