Home
last modified time | relevance | path

Searched refs:time_now (Results 1 – 25 of 34) sorted by relevance

12

/external/adhd/cras/src/tests/
Dcras_tm_unittest.cc29 static struct timespec time_now; variable
61 time_now.tv_sec = 0; in TEST_F()
62 time_now.tv_nsec = 0; in TEST_F()
72 time_now.tv_sec = 12; in TEST_F()
73 time_now.tv_nsec = 0; in TEST_F()
89 time_now.tv_sec = 0; in TEST_F()
90 time_now.tv_nsec = 0; in TEST_F()
100 time_now.tv_sec = 1; in TEST_F()
101 time_now.tv_nsec = 0; in TEST_F()
120 time_now.tv_sec = 0; in TEST_F()
[all …]
Da2dp_iodev_unittest.cc101 static struct timespec time_now; variable
249 time_now.tv_sec = 0; in TEST()
250 time_now.tv_nsec = 0; in TEST()
267 time_now.tv_sec = 0; in TEST()
268 time_now.tv_nsec = 1000000; in TEST()
272 EXPECT_EQ(tstamp.tv_sec, time_now.tv_sec); in TEST()
273 EXPECT_EQ(tstamp.tv_nsec, time_now.tv_nsec); in TEST()
276 time_now.tv_sec = 0; in TEST()
277 time_now.tv_nsec = 2000000; in TEST()
286 EXPECT_EQ(tstamp.tv_sec, time_now.tv_sec); in TEST()
[all …]
Dutil_unittest.cc16 static std::vector<struct timespec> time_now; variable
256 time_now.push_back(tn); in TEST()
261 time_now.push_back(tn); in TEST()
299 time_now.push_back(timeout); in TEST()
301 time_now.push_back(timeout); in TEST()
314 std::vector<struct timespec>::iterator i = time_now.begin(); in clock_gettime()
315 if (i != time_now.end()) { in clock_gettime()
317 time_now.erase(i); in clock_gettime()
Dloopback_iodev_unittest.cc25 static struct timespec time_now; variable
106 time_now.tv_sec = 100; in TEST_F()
107 time_now.tv_nsec = 0; in TEST_F()
113 time_now.tv_nsec += 480 * 1e9 / 48000; in TEST_F()
233 *tp = time_now; in clock_gettime()
/external/autotest/client/cros/power/
Dpower_rapl.py218 time_now = time.time()
220 time_used = time_now - self._time_start
227 self._time_start = time_now
298 time_now = time.time()
300 time_used = time_now - self._time_start
303 self._time_start = time_now
/external/webrtc/webrtc/test/
Dfake_network_pipe.cc116 int64_t time_now = clock_->TimeInMilliseconds(); in SendPacket() local
122 int64_t network_start_time = time_now; in SendPacket()
130 NetworkPacket* packet = new NetworkPacket(data, data_length, time_now, in SendPacket()
154 int64_t time_now = clock_->TimeInMilliseconds(); in Process() local
160 time_now >= capacity_link_.front()->arrival_time()) { in Process()
189 time_now >= delay_link_.front()->arrival_time()) { in Process()
/external/webrtc/webrtc/common_video/
Dvideo_render_frames.cc30 const int64_t time_now = TickTime::MillisecondTimestamp(); in AddFrame() local
35 new_frame.render_time_ms() + KOldRenderTimestampMS < time_now) { in AddFrame()
45 if (new_frame.render_time_ms() > time_now + KFutureRenderTimestampMS) { in AddFrame()
/external/google-breakpad/src/client/windows/crash_generation/
Dclient_info.cc170 ULARGE_INTEGER time_now; in SetProcessUptime() local
171 time_now.HighPart = now.dwHighDateTime; in SetProcessUptime()
172 time_now.LowPart = now.dwLowDateTime; in SetProcessUptime()
175 __int64 delay = (time_now.QuadPart - time_start.QuadPart) / 10 / 1000; in SetProcessUptime()
/external/autotest/client/deps/glbench/src/
Dutils.cc141 uint64_t time_now = time_start; in WaitForCoolMachine() local
142 uint64_t time_end = time_now + 1e6 * timeout; in WaitForCoolMachine()
144 while (time_now < time_end) { in WaitForCoolMachine()
148 time_now = GetUTime(); in WaitForCoolMachine()
151 double wait_time = 1.0e-6 * (time_now - time_start); in WaitForCoolMachine()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dneteq_network_stats_unittest.cc180 uint32_t time_now; in RunTest() local
184 time_now = next_send_time = last_lost_time_ = in RunTest()
189 while (time_now + kFrameSizeMs >= next_send_time) { in RunTest()
198 time_now += kOutputLengthMs; in RunTest()
Dneteq_external_decoder_unittest.cc106 uint32_t time_now = 0; in RunTest() local
108 while (time_now >= next_arrival_time) { in RunTest()
125 time_now += kOutputLengthMs; in RunTest()
Dneteq_stereo_unittest.cc192 int time_now = 0; in RunTest() local
194 while (time_now >= next_arrival_time) { in RunTest()
238 time_now += kTimeStepMs; in RunTest()
/external/webrtc/webrtc/modules/utility/source/
Dprocess_thread_impl.cc26 int64_t GetNextCallbackTime(Module* module, int64_t time_now) { in GetNextCallbackTime() argument
30 return time_now; in GetNextCallbackTime()
32 return time_now + interval; in GetNextCallbackTime()
/external/eigen/bench/
Dbenchmark-blocking-sizes.cpp396 double time_now = 0; in try_run_some_benchmarks() local
402 time_now = timer.getRealTime(); in try_run_some_benchmarks()
406 time_now > time_last_clock_speed_measurement + 60.0f) in try_run_some_benchmarks()
408 time_last_clock_speed_measurement = time_now; in try_run_some_benchmarks()
487 if (time_now > time_last_progress_update + 1.0f) { in try_run_some_benchmarks()
488 time_last_progress_update = time_now; in try_run_some_benchmarks()
491 << human_duration_t(float(time_now - time_start) * (1.0f - ratio_done) / ratio_done) in try_run_some_benchmarks()
/external/v8/src/
Dd8-posix.cc87 struct timeval time_now; in WaitOnFD() local
88 gettimeofday(&time_now, NULL); in WaitOnFD()
89 time_t seconds = time_now.tv_sec - start_time.tv_sec; in WaitOnFD()
91 (time_now.tv_usec - start_time.tv_usec) / 1000); in WaitOnFD()
118 struct timeval time_now; in TimeIsOut() local
119 gettimeofday(&time_now, NULL); in TimeIsOut()
121 int seconds = static_cast<int>(time_now.tv_sec - start_time.tv_sec); in TimeIsOut()
126 int useconds = static_cast<int>(time_now.tv_usec - start_time.tv_usec); in TimeIsOut()
/external/webrtc/webrtc/modules/video_coding/test/
Drtp_player.cc128 RawRtpPacket* NextPacketToResend(int64_t time_now) { in NextPacketToResend() argument
132 if (time_now >= packet->resend_time_ms() && in NextPacketToResend()
349 virtual int NextPacket(int64_t time_now) { in NextPacket() argument
351 for (RawRtpPacket* packet = lost_packets_.NextPacketToResend(time_now); in NextPacket()
352 packet != NULL; packet = lost_packets_.NextPacketToResend(time_now)) { in NextPacket()
/external/boringssl/src/tool/
Dspeed.cc73 static uint64_t time_now() { return GetTickCount64() * 1000; } in time_now() function
75 static uint64_t time_now() { in time_now() function
86 static uint64_t time_now() { in time_now() function
103 uint64_t start = time_now(), now, delta; in TimeFunction()
109 now = time_now(); in TimeFunction()
132 now = time_now(); in TimeFunction()
/external/dnsmasq/src/
Dlog.c261 time_t time_now; in my_syslog() local
335 time(&time_now); in my_syslog()
340 p += sprintf(p, "%.15s dnsmasq%s[%d]: ", ctime(&time_now) + 4, func, (int)pid); in my_syslog()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Daimd_rate_control.cc69 bool AimdRateControl::TimeToReduceFurther(int64_t time_now, in TimeToReduceFurther() argument
73 if (time_now - time_last_bitrate_change_ >= bitrate_reduction_interval) { in TimeToReduceFurther()
Dremote_bitrate_estimator_single_stream.h49 void UpdateEstimate(int64_t time_now)
Daimd_rate_control.h38 bool TimeToReduceFurther(int64_t time_now,
/external/webrtc/webrtc/video/
Doveruse_frame_detector.cc356 int64_t time_now) { in IsUnderusing() argument
358 if (time_now < last_rampup_time_ + delay) in IsUnderusing()
Doveruse_frame_detector.h111 bool IsUnderusing(const CpuOveruseMetrics& metrics, int64_t time_now);
/external/webrtc/talk/media/base/
Dvideocapturer.cc709 double time_now = frame_length_time_reporter_.TimerNow(); in UpdateStats() local
712 frame_time_data_.AddSample(time_now - previous_frame_time_); in UpdateStats()
714 previous_frame_time_ = time_now; in UpdateStats()
/external/skqp/infra/bots/recipe_modules/core/resources/
Drun_binary_size_analysis.py429 time_now = time.time()
430 time_spent = time_now - progress.time_last_output
433 progress.time_last_output = time_now

12