commit | af1e7b77217430cc2d423e9f552dcfb4e004539b | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Thu Jul 19 09:17:24 2012 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:59 2013 -0700 |
tree | 2239d9e5060898ad199d42b8a135682f684417b4 | |
parent | e6bee12f943a5b6e7c596220dd02d5837322d09f [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;