Add docs to SystemClock.h

Test: n/a
Change-Id: I16a41e9b98c88270857fe2a1d6b382bfe469bca6
This commit is contained in:
Zhomart Mukhamejanov 2021-02-23 12:14:57 -08:00
parent df33cb98ef
commit 45e0dc1dae

View file

@ -20,11 +20,18 @@
#include <stdint.h>
#include <sys/types.h>
// See https://developer.android.com/reference/android/os/SystemClock
// to learn more about Android's timekeeping facilities.
namespace android {
// Returns milliseconds since boot, not counting time spent in deep sleep.
int64_t uptimeMillis();
// Returns nanoseconds since boot, not counting time spent in deep sleep.
int64_t uptimeNanos();
// Returns milliseconds since boot, including time spent in sleep.
int64_t elapsedRealtime();
// Returns nanoseconds since boot, including time spent in sleep.
int64_t elapsedRealtimeNano();
} // namespace android