Home
last modified time | relevance | path

Searched refs:end_ts (Results 1 – 4 of 4) sorted by relevance

/system/core/storaged/
Dstoraged.cpp343 struct timespec start_ts, end_ts; in event_checked() local
355 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &end_ts) < 0) { in event_checked()
359 int64_t cost = (end_ts.tv_sec - start_ts.tv_sec) * SEC_TO_USEC + in event_checked()
360 (end_ts.tv_nsec - start_ts.tv_nsec) / USEC_TO_NSEC; in event_checked()
Dstoraged.proto36 optional uint64 end_ts = 1; field
Dstoraged_uid_monitor.cpp411 const uint64_t& end_ts = item.first; in update_uid_io_proto() local
423 item_proto->set_end_ts(end_ts); in update_uid_io_proto()
478 struct uid_records* recs = &io_history_[item_proto.end_ts()]; in load_uid_io_proto()
/system/core/storaged/tests/
Dstoraged_test.cpp496 EXPECT_EQ(user_0_item_0.end_ts(), 200UL); in TEST()
506 EXPECT_EQ(user_0_item_1.end_ts(), 300UL); in TEST()
515 EXPECT_EQ(user_1_item_0.end_ts(), 200UL); in TEST()
523 EXPECT_EQ(user_1_item_1.end_ts(), 300UL); in TEST()