Merge "Add docs to SystemClock.h" am: 0d4089cb1c am: 27e2d3d4fd

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1603259

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If80e983dbc351de0fc0b8b0a0a70e7604c6d1404
This commit is contained in:
Treehugger Robot 2021-02-24 01:50:43 +00:00 committed by Automerger Merge Worker
commit ac92eef968

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