Merge "Add docs to SystemClock.h"
This commit is contained in:
commit
0d4089cb1c
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue