Searched refs:TimeDifference (Results 1 – 4 of 4) sorted by relevance
/device/google/cuttlefish/common/libs/time/ |
D | monotonic_time_test.cpp | 21 using cuttlefish::time::TimeDifference; 29 TimeDifference td1(1, 10, 1); in TEST_F() 30 TimeDifference td2(0, 100, 1); in TEST_F() 35 TimeDifference td1(10, 1000, 1); in TEST_F() 36 TimeDifference td2(100, 10000, 1); in TEST_F() 42 TimeDifference td1(10, 1000, scale); in TEST_F() 43 TimeDifference td2(100, 10000, scale); in TEST_F() 49 TimeDifference td1(-10, 1000, scale); in TEST_F() 50 TimeDifference td2(100, 10000, scale); in TEST_F() 56 TimeDifference td1(-10, 1000, scale1); in TEST_F() [all …]
|
D | monotonic_time.h | 26 class TimeDifference { 28 TimeDifference(time_t seconds, long nanoseconds, int64_t scale) : in TimeDifference() function 38 TimeDifference(const TimeDifference& in, int64_t scale) : in TimeDifference() function 50 TimeDifference(const struct timespec& in, int64_t scale) : in TimeDifference() function 53 TimeDifference operator*(const uint32_t factor) { 54 TimeDifference rval = *this; 67 TimeDifference operator+(const TimeDifference& other) const { 72 return TimeDifference(ret, scale_ < other.scale_ ? scale_: other.scale_); 75 TimeDifference operator-(const TimeDifference& other) const { 82 return TimeDifference(ret, scale_ < other.scale_ ? scale_: other.scale_); [all …]
|
/device/google/cuttlefish/guest/hals/hwcomposer/common/ |
D | stats_keeper.h | 83 StatsKeeper(cuttlefish::time::TimeDifference timespan, int64_t vsync_base, 105 cuttlefish::time::TimeDifference period_length_; 194 stats_keeper_(cuttlefish::time::TimeDifference(cuttlefish::time::Seconds(10), 1),
|
D | stats_keeper.cpp | 37 using cuttlefish::time::TimeDifference; 58 void TimeDifferenceToTimeSpec(const TimeDifference& td, timespec* ts) { in TimeDifferenceToTimeSpec() 84 StatsKeeper::StatsKeeper(TimeDifference timespan, int64_t vsync_base, in StatsKeeper()
|