Loading base/chrono_utils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ namespace android { namespace base { boot_clock::time_point boot_clock::now() { #ifdef __ANDROID__ #ifdef __linux__ timespec ts; clock_gettime(CLOCK_BOOTTIME, &ts); return boot_clock::time_point(std::chrono::seconds(ts.tv_sec) + Loading @@ -30,7 +30,7 @@ boot_clock::time_point boot_clock::now() { #else // Darwin does not support clock_gettime. return boot_clock::time_point(); #endif // __ANDROID__ #endif // __linux__ } std::ostream& operator<<(std::ostream& os, const Timer& t) { Loading Loading
base/chrono_utils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ namespace android { namespace base { boot_clock::time_point boot_clock::now() { #ifdef __ANDROID__ #ifdef __linux__ timespec ts; clock_gettime(CLOCK_BOOTTIME, &ts); return boot_clock::time_point(std::chrono::seconds(ts.tv_sec) + Loading @@ -30,7 +30,7 @@ boot_clock::time_point boot_clock::now() { #else // Darwin does not support clock_gettime. return boot_clock::time_point(); #endif // __ANDROID__ #endif // __linux__ } std::ostream& operator<<(std::ostream& os, const Timer& t) { Loading