diff --git a/libutils/include/utils/SystemClock.h b/libutils/include/utils/SystemClock.h index 892104cb8..3c59297a6 100644 --- a/libutils/include/utils/SystemClock.h +++ b/libutils/include/utils/SystemClock.h @@ -20,11 +20,18 @@ #include #include +// 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