Lines Matching refs:ms
24 using std::literals::chrono_literals::operator""ms;
42 EXPECT_THAT(gpu_time_attribution(12ms, 0ms), DoubleEq(0)); in TEST()
43 EXPECT_THAT(gpu_time_attribution(12ms, 8ms), DoubleEq(2.0 / 3.0)); in TEST()
44 EXPECT_THAT(gpu_time_attribution(12ms, 6ms), DoubleEq(0.5)); in TEST()
45 EXPECT_THAT(gpu_time_attribution(12ms, 12ms), DoubleEq(1.0)); in TEST()
46 EXPECT_THAT(gpu_time_attribution(12ms, 12ms), DoubleEq(1.0)); in TEST()
50 EXPECT_THAT(gpu_time_attribution(0ms, 8ms), DoubleEq(0.0)); in TEST()
51 EXPECT_THAT(gpu_time_attribution(0ms, 0ms), DoubleEq(0.0)); in TEST()
56 .durationNanos = to_int_nanoseconds(12ms), in TEST()
57 .cpuDurationNanos = to_int_nanoseconds(8ms), in TEST()
58 .gpuDurationNanos = to_int_nanoseconds(8ms), in TEST()
61 std::chrono::duration_cast<std::chrono::nanoseconds>(15ms); in TEST()
68 .durationNanos = to_int_nanoseconds(12ms), in TEST()
69 .cpuDurationNanos = to_int_nanoseconds(8ms), in TEST()
70 .gpuDurationNanos = to_int_nanoseconds(8ms), in TEST()
72 EXPECT_EQ(calculate_capacity(observation, 10ms, 1000000_hz), Cycles(1333)); in TEST()
77 .durationNanos = to_int_nanoseconds(10ms), in TEST()
78 .cpuDurationNanos = to_int_nanoseconds(1ms), in TEST()
79 .gpuDurationNanos = to_int_nanoseconds(9ms), in TEST()
81 EXPECT_EQ(calculate_capacity(observation, 9ms, 100000_hz), Cycles(90)); in TEST()
86 .durationNanos = to_int_nanoseconds(10ms), in TEST()
87 .cpuDurationNanos = to_int_nanoseconds(0ms), in TEST()
88 .gpuDurationNanos = to_int_nanoseconds(10ms), in TEST()
90 EXPECT_EQ(calculate_capacity(observation, 9ms, 100000_hz), Cycles(100)); in TEST()
95 .durationNanos = to_int_nanoseconds(10ms), in TEST()
96 .cpuDurationNanos = to_int_nanoseconds(6ms), in TEST()
97 .gpuDurationNanos = to_int_nanoseconds(8ms), in TEST()
99 EXPECT_EQ(calculate_capacity(observation, 9ms, 100000000_hz), Cycles(80000)); in TEST()
104 .durationNanos = to_int_nanoseconds(10ms), in TEST()
105 .cpuDurationNanos = to_int_nanoseconds(10ms), in TEST()
106 .gpuDurationNanos = to_int_nanoseconds(0ms), in TEST()
108 EXPECT_EQ(calculate_capacity(observation, 9ms, 100000_hz), Cycles(0)); in TEST()
113 .durationNanos = to_int_nanoseconds(10ms), in TEST()
114 .cpuDurationNanos = to_int_nanoseconds(10ms), in TEST()
115 .gpuDurationNanos = to_int_nanoseconds(10ms), in TEST()
117 EXPECT_EQ(calculate_capacity(observation, 9ms, 100000_hz), Cycles(100)); in TEST()
122 .durationNanos = to_int_nanoseconds(12ms), in TEST()
123 .cpuDurationNanos = to_int_nanoseconds(4ms), in TEST()
124 .gpuDurationNanos = to_int_nanoseconds(4ms), in TEST()
126 EXPECT_EQ(calculate_capacity(observation, 10ms, 1000_hz), Cycles(1)); in TEST()
131 .durationNanos = to_int_nanoseconds(20ms), in TEST()
132 .cpuDurationNanos = to_int_nanoseconds(9ms), in TEST()
133 .gpuDurationNanos = to_int_nanoseconds(1ms), in TEST()
135 EXPECT_EQ(calculate_capacity(observation, 10ms, 100000_hz), Cycles(100)); in TEST()
150 .durationNanos = to_int_nanoseconds(10ms), in TEST()
151 .cpuDurationNanos = to_int_nanoseconds(1ms), in TEST()
152 .gpuDurationNanos = to_int_nanoseconds(9ms), in TEST()
154 EXPECT_EQ(calculate_capacity(observation, 9ms, Frequency(-10)), Cycles(0)); in TEST()
155 EXPECT_EQ(calculate_capacity(observation, 9ms, Frequency(0)), Cycles(0)); in TEST()
160 .durationNanos = to_int_nanoseconds(10ms), in TEST()
161 .cpuDurationNanos = to_int_nanoseconds(1ms), in TEST()
162 .gpuDurationNanos = to_int_nanoseconds(1ms), in TEST()
164 EXPECT_EQ(calculate_capacity(observation, 9ms, 100_hz), Cycles(0)); in TEST()
169 .durationNanos = to_int_nanoseconds(10ms), in TEST()
170 .cpuDurationNanos = to_int_nanoseconds(1ms), in TEST()
171 .gpuDurationNanos = to_int_nanoseconds(1ms), in TEST()
173 EXPECT_EQ(calculate_capacity(observation, 0ms, 100_hz), Cycles(0)); in TEST()
174 EXPECT_EQ(calculate_capacity(observation, -1ms, 100_hz), Cycles(0)); in TEST()
179 .durationNanos = to_int_nanoseconds(20ms), in TEST()
180 .cpuDurationNanos = to_int_nanoseconds(40ms), in TEST()
181 .gpuDurationNanos = to_int_nanoseconds(20ms), in TEST()
183 EXPECT_EQ(calculate_capacity(observation, 10ms, 100000_hz), Cycles(0)); in TEST()
188 .durationNanos = to_int_nanoseconds(20ms), in TEST()
189 .cpuDurationNanos = to_int_nanoseconds(20ms), in TEST()
190 .gpuDurationNanos = to_int_nanoseconds(40ms), in TEST()
192 EXPECT_EQ(calculate_capacity(observation, 10ms, 100000_hz), Cycles(0)); in TEST()