Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d4089cb authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add docs to SystemClock.h"

parents 06e1b6c3 45e0dc1d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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