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

Function now_ms

bitmap-plasma/app/src/main/cpp/plasma.cpp:36–40  ·  view source on GitHub ↗

Return current time in milliseconds */

Source from the content-addressed store, hash-verified

34
35/* Return current time in milliseconds */
36static double now_ms(void) {
37 struct timeval tv;
38 gettimeofday(&tv, NULL);
39 return tv.tv_sec * 1000. + tv.tv_usec / 1000.;
40}
41
42/* We're going to perform computations for every pixel of the target
43 * bitmap. floating-point operations are very slow on ARMv5, and not

Callers 3

stats_initFunction · 0.85
stats_startFrameFunction · 0.85
stats_endFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected