/system/netd/include/ |
H A D | Stopwatch.h | 24 Stopwatch() : mStart(clock::now()) {} 29 return getElapsed(clock::now()); 33 const auto& now = clock::now(); local 34 float elapsed = getElapsed(now); 35 mStart = now; 44 float getElapsed(const time_point& now) const { 46 return (std::chrono::duration_cast<ms>(now - mStart)).count();
|
/system/security/keystore/ |
H A D | keystore_keymaster_enforcement.h | 42 time_t now = time(NULL); variable 43 if (now == static_cast<time_t>(-1)) { 46 } else if (now < 0) { 55 uint64_t now_date = static_cast<uint64_t>(now) * 1000 + 999; 60 time_t now = time(NULL); variable 61 if (now == static_cast<time_t>(-1)) { 64 } else if (now < 0) { 72 uint64_t now_date = static_cast<uint64_t>(now) * 1000;
|
/system/core/base/ |
H A D | chrono_utils_test.cpp | 32 struct timespec now; local 33 clock_gettime(CLOCK_BOOTTIME, &now); 35 auto now_tp = boot_clock::time_point(std::chrono::seconds(now.tv_sec) + 36 std::chrono::nanoseconds(now.tv_nsec)); 40 // Tests (at least) the seconds accuracy of the boot_clock::now() method. 42 auto now = GetBootTimeSeconds(); local 44 std::chrono::duration_cast<std::chrono::seconds>(boot_clock::now().time_since_epoch()); 45 EXPECT_EQ(now, boot_seconds); 57 auto start = boot_clock::now(); 60 auto stop = boot_clock::now(); [all...] |
H A D | chrono_utils.cpp | 24 boot_clock::time_point boot_clock::now() { function in class:android::base::boot_clock
|
/system/core/liblog/ |
H A D | log_ratelimit.cpp | 76 time_t now = time(NULL); local 77 if ((now == (time_t)-1) || ((*last + seconds) > now)) { 82 *last = now;
|
H A D | log_time.cpp | 32 time_t now; local 35 now = tv_sec; 37 time(&now); 38 tv_sec = now; 45 ptm = localtime_r(&now, &tmBuf); 47 ptm = localtime(&now); 81 now = tv_sec; 83 ptm = localtime_r(&now, &tmBuf); 85 ptm = localtime(&now); 130 time(&now); [all...] |
/system/update_engine/update_manager/ |
H A D | real_time_provider_unittest.cc | 62 const Time now = CurrTime(); local 64 now.LocalExplode(&exploded); 71 fake_clock_.SetWallclockTime(now); 76 const Time now = CurrTime(); local 78 now.LocalExplode(&expected); 79 fake_clock_.SetWallclockTime(now);
|
/system/core/base/include/android-base/ |
H A D | chrono_utils.h | 34 static time_point now(); 39 Timer() : start_(boot_clock::now()) {} 42 return std::chrono::duration_cast<std::chrono::milliseconds>(boot_clock::now() - start_);
|
/system/core/healthd/ |
H A D | healthd_mode_charger.cpp | 275 static void update_screen_state(charger* charger, int64_t now) { argument 279 if (!batt_anim->run || now < charger->next_screen_transition) return; 284 LOGV("[%" PRId64 "] leave screen off\n", now); 304 LOGV("[%" PRId64 "] animation done\n", now); 313 LOGV("[%" PRId64 "] animation starting\n", now); 344 LOGW("[%" PRId64 "] animation missing or unknown battery status\n", now); 345 charger->next_screen_transition = now + BATTERY_UNKNOWN_TIME; 351 charger->next_screen_transition = now + disp_time; 383 int64_t now = curr_time_ms(); local 393 if (down) charger->keys[code].timestamp = now; 421 process_key(charger* charger, int code, int64_t now) argument 468 handle_input_state(charger* charger, int64_t now) argument 475 handle_power_supply_state(charger* charger, int64_t now) argument 506 int64_t now = curr_time_ms(); local 534 int64_t now = curr_time_ms(); local [all...] |
/system/libfmq/benchmarks/ |
H A D | msgq_benchmark_client.cpp | 128 std::chrono::high_resolution_clock::now(); 139 std::chrono::high_resolution_clock::now(); 162 std::chrono::high_resolution_clock::now(); 172 std::chrono::high_resolution_clock::now(); 196 std::chrono::high_resolution_clock::now(); 206 std::chrono::high_resolution_clock::now(); 229 std::chrono::high_resolution_clock::now(); 239 std::chrono::high_resolution_clock::now(); 261 std::chrono::high_resolution_clock::now(); 270 std::chrono::high_resolution_clock::now(); [all...] |
/system/core/logd/ |
H A D | FlushCommand.cpp | 66 log_time now(CLOCK_REALTIME); 67 if (((entry->mEnd + entry->mTimeout) > now) && 68 (now > entry->mEnd)) {
|
H A D | LogBuffer.h | 53 log_time now(CLOCK_REALTIME); 56 if (now.tv_sec >= EPOCH_PLUS_2_YEARS) { 61 if (now.tv_sec < EPOCH_PLUS_MINUTE) { 67 if ((cpu.tv_sec + EPOCH_PLUS_MINUTE) >= now.tv_sec) { 72 return mono.tv_sec < ((cpu.tv_sec + now.tv_sec) / 2);
|
H A D | LogAudit.cpp | 246 log_time now; local 251 ((cp = now.strptime(timeptr + sizeof(audit_str) - 1, "%s.%q"))) && 256 if (android::isMonotonic(now)) { 257 LogKlog::convertMonotonicToReal(now); 260 if (!android::isMonotonic(now)) { 261 LogKlog::convertRealToMonotonic(now); 265 now = log_time(CLOCK_MONOTONIC); 267 now = log_time(CLOCK_REALTIME); 303 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, 356 rc = logbuf->log(LOG_ID_MAIN, now, ui [all...] |
H A D | LogKlog.cpp | 279 time_t now = real.tv_sec; local 283 localtime_r(&now, &tm); 296 void LogKlog::sniffTime(log_time& now, const char*& buf, ssize_t len, argument 302 cp = now.strptime(buf, "[ %s.%q]"); // can index beyond buffer bounds 319 calculateCorrection(now, b, len); 323 calculateCorrection(now, b, len); 358 convertMonotonicToReal(now); 361 now = log_time(CLOCK_MONOTONIC); 363 now = log_time(CLOCK_REALTIME); 454 log_time now; local 555 log_time now; local [all...] |
H A D | LogKlog.h | 58 void sniffTime(log_time& now, const char*& buf, ssize_t len, bool reverse);
|
/system/extras/tests/icachetest/ |
H A D | icache_main.cpp | 107 auto now = std::chrono::steady_clock::now(); local 111 auto duration = std::chrono::steady_clock::now() - now;
|
/system/connectivity/wificond/tests/integration/ |
H A D | binder_dispatcher.cpp | 63 steady_clock::time_point start_time = steady_clock::now(); 68 convertDurationToMillis(start_time, steady_clock::now());
|
/system/extras/simpleperf/ |
H A D | cpu_hotplug_test.cpp | 246 auto start_time = std::chrono::steady_clock::now(); 248 auto end_time = std::chrono::steady_clock::now() + test_duration_for_long_tests; 253 if (cur_time + report_step < std::chrono::steady_clock::now()) { 256 std::chrono::steady_clock::now() - start_time); 260 cur_time = std::chrono::steady_clock::now(); 302 auto start_time = std::chrono::steady_clock::now(); 304 auto end_time = std::chrono::steady_clock::now() + test_duration_for_long_tests; 309 if (cur_time + report_step < std::chrono::steady_clock::now()) { 312 std::chrono::steady_clock::now() - start_time); 316 cur_time = std::chrono::steady_clock::now(); [all...] |
/system/update_engine/ |
H A D | metrics_utils.cc | 157 // For now just map that to kDownloading. See http://crbug.com/355745 273 Time now = system_state->clock()->GetWallclockTime(); local 277 if (stored_time > now) { 281 *out_duration = now - stored_time; 287 now.ToInternalValue())) { 299 Time now = system_state->clock()->GetMonotonicTime(); local 302 *out_duration = now - stored_time; 305 *storage = now.ToInternalValue();
|
/system/core/adb/ |
H A D | adb_trace.cpp | 52 struct tm now; local 56 localtime_r(&t, &now); 59 strftime(timestamp, sizeof(timestamp), "%Y-%m-%d-%H-%M-%S", &now);
|
/system/bt/embdrv/sbc/decoder/include/ |
H A D | oi_osinterface.h | 85 * @param[out] now Pointer to the buffer to which the current 88 void OI_Time_Now(OI_TIME* now);
|
/system/bt/test/suite/core/ |
H A D | thread_performance_test.cc | 74 std::chrono::steady_clock::now(); 89 std::chrono::steady_clock::now(); 108 std::chrono::steady_clock::now(); 117 std::chrono::steady_clock::now();
|
/system/core/fastboot/ |
H A D | util.cpp | 38 double now() function
|
/system/extras/zram-perf/ |
H A D | zram-perf.cpp | 80 start = chrono::high_resolution_clock::now(); 91 end = chrono::high_resolution_clock::now(); 101 start = chrono::high_resolution_clock::now(); 113 end = chrono::high_resolution_clock::now();
|
/system/core/libcutils/tests/ |
H A D | sched_policy_test.cpp | 49 auto start = std::chrono::steady_clock::now(); 51 auto end = std::chrono::steady_clock::now();
|