commit | 074cd0c0765d1aec5a4ff5ac460f0685ae067fb1 | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Thu Jul 19 09:17:24 2012 -0700 |
committer | Nick Pelly <npelly@google.com> | Thu Jul 19 16:06:21 2012 -0700 |
tree | 318371eaf5d0e59babc3338889b83e3d5731c742 | |
parent | df5cbd76224ea1facb7cfb499f4d522e55753774 [diff] [blame] |
Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible. Change-Id: I4231c8ca32663e6e2cb5b7c126d091f837373807
diff --git a/libs/utils/Timers.cpp b/libs/utils/Timers.cpp index 64b4701..d4f8516 100644 --- a/libs/utils/Timers.cpp +++ b/libs/utils/Timers.cpp
@@ -39,7 +39,8 @@ CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID, - CLOCK_THREAD_CPUTIME_ID + CLOCK_THREAD_CPUTIME_ID, + CLOCK_BOOTTIME }; struct timespec t; t.tv_sec = t.tv_nsec = 0;