Home
last modified time | relevance | path

Searched refs:current_time (Results 1 – 25 of 79) sorted by relevance

1234

/external/webrtc/webrtc/base/
Dratetracker.cc41 uint32_t current_time = Time(); in ComputeRateForInterval() local
53 if (current_time > in ComputeRateForInterval()
56 current_time - bucket_start_time_milliseconds_ + in ComputeRateForInterval()
65 TimeDiff(current_time, initialization_time_milliseconds_); in ComputeRateForInterval()
95 uint32_t current_time = Time(); in ComputeTotalRate() local
96 if (TimeIsLaterOrEqual(current_time, initialization_time_milliseconds_)) { in ComputeTotalRate()
101 TimeDiff(current_time, initialization_time_milliseconds_)); in ComputeTotalRate()
110 uint32_t current_time = Time(); in AddSamples() local
114 current_time >= bucket_start_time_milliseconds_ + bucket_milliseconds_; in AddSamples()
123 ((current_time - bucket_start_time_milliseconds_) / bucket_milliseconds_); in AddSamples()
/external/toybox/toys/pending/
Ddumpleases.c41 int64_t written_time , current_time, exp; in dumpleases_main() local
48 current_time = time(NULL); in dumpleases_main()
50 if(current_time < written_time) written_time = current_time; in dumpleases_main()
60 if (exp <= current_time) { in dumpleases_main()
66 unsigned expires = exp - current_time; in dumpleases_main()
/external/perfetto/src/perfetto_cmd/
Drate_limiter_unittest.cc143 args.current_time = base::TimeSeconds(41); in TEST()
164 args.current_time = base::TimeSeconds(10000); in TEST()
191 args.current_time = base::TimeSeconds(input.last_trace_timestamp() + 60 * 10); in TEST()
204 static_cast<uint64_t>(args.current_time.count())); in TEST()
236 args.current_time = base::TimeSeconds(99); in TEST()
259 args.current_time = base::TimeSeconds(10000 + 60 * 4); in TEST()
274 args.current_time = base::TimeSeconds(60 * 60); in TEST()
289 args.current_time = base::TimeSeconds(60 * 60); in TEST()
307 args.current_time = base::TimeSeconds(60 * 60 * 24 + 2); in TEST()
319 static_cast<uint64_t>(args.current_time.count())); in TEST()
[all …]
/external/vboot_reference/tests/
Dvboot_api_devmode_tests.c139 static int current_time; variable
174 current_time = 0; in ResetMocks()
228 now = current_time; in VbExKeyboardRead()
244 current_time = current_ticks / TICKS_PER_MSEC; in VbExSleepMs()
245 VBDEBUG(("VbExSleepMs(%d) -> %d\n", msec, current_time)); in VbExSleepMs()
253 VBDEBUG(("VbExBeep(%d, %d) at %d msec\n", msec, frequency, current_time)); in VbExBeep()
258 abs(current_time - expected_event[current_event].time) < TIME_FUZZ ) { in VbExBeep()
292 VBDEBUG((" current_time is %d msec\n", current_time)); in VbExDisplayScreen()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/time/
D1-1.c21 time_t current_time; in main() local
23 current_time = time(NULL); in main()
24 printf("%ju secs since the Epoch\n", (uintmax_t) current_time); in main()
26 if (current_time != -1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/ctime/
D1-1.c19 time_t current_time; in main() local
22 time(&current_time); in main()
23 result = ctime(&current_time); in main()
30 ctime(&current_time)); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/localtime/
D1-1.c19 time_t current_time; in main() local
22 current_time = time(NULL); in main()
24 timeptr = localtime(&current_time); in main()
27 printf("date: %s", (asctime(localtime((&current_time))))); in main()
/external/vulkan-validation-layers/demos/smoke/
DShellXcb.cpp235 double current_time = timer.get(); in loop_poll() local
236 double profile_start_time = current_time; in loop_poll()
254 add_game_time(static_cast<float>(t - current_time)); in loop_poll()
258 current_time = t; in loop_poll()
261 if (current_time - profile_start_time >= 5.0) { in loop_poll()
262 const double fps = profile_present_count / (current_time - profile_start_time); in loop_poll()
264 … ss << profile_present_count << " presents in " << current_time - profile_start_time << " seconds " in loop_poll()
268 profile_start_time = current_time; in loop_poll()
DShellWayland.cpp302 double current_time = timer.get(); in loop_poll() local
303 double profile_start_time = current_time; in loop_poll()
314 add_game_time(static_cast<float>(t - current_time)); in loop_poll()
318 current_time = t; in loop_poll()
321 if (current_time - profile_start_time >= 5.0) { in loop_poll()
322 const double fps = profile_present_count / (current_time - profile_start_time); in loop_poll()
324 … ss << profile_present_count << " presents in " << current_time - profile_start_time << " seconds " in loop_poll()
328 profile_start_time = current_time; in loop_poll()
/external/google-breakpad/src/client/windows/tests/crash_generation_app/
Dcrash_generation_app.cc141 SYSTEMTIME current_time; in AppendTextToEditBox() local
142 GetLocalTime(&current_time); in AppendTextToEditBox()
147 current_time.wMonth, in AppendTextToEditBox()
148 current_time.wDay, in AppendTextToEditBox()
149 current_time.wYear, in AppendTextToEditBox()
150 current_time.wHour, in AppendTextToEditBox()
151 current_time.wMinute, in AppendTextToEditBox()
152 current_time.wSecond, in AppendTextToEditBox()
/external/toolchain-utils/crosperf/
Dexperiment_status.py36 current_time = time.time()
38 elapsed_time = current_time - self.experiment.start_time
44 self.new_job_start_time = current_time
46 (current_time - self.new_job_start_time))
70 (current_time - self.new_job_start_time)))
/external/webrtc/webrtc/modules/video_coding/test/
Dstream_generator.cc24 StreamGenerator::StreamGenerator(uint16_t start_seq_num, int64_t current_time) in StreamGenerator() argument
25 : packets_(), sequence_number_(start_seq_num), start_time_(current_time) {} in StreamGenerator()
27 void StreamGenerator::Init(uint16_t start_seq_num, int64_t current_time) { in Init() argument
30 start_time_ = current_time; in Init()
/external/ipsec-tools/src/racoon/
Dschedule.c72 static time_t current_time __P((void));
86 now = current_time(); in schedular()
114 now = current_time(); in schedular()
147 new->xtime = current_time() + tick;
180 current_time() in current_time() function
/external/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_def_task01.c102 time_t current_time, prev_time, delta_time; in main() local
191 current_time = time(NULL); in main()
193 delta_time = current_time - prev_time; in main()
204 prev_time = current_time; in main()
Dcpuctl_def_task03.c100 time_t current_time, prev_time, delta_time; in main() local
198 current_time = time(NULL); in main()
200 delta_time = current_time - prev_time; in main()
211 prev_time = current_time; in main()
Dcpuctl_def_task02.c104 time_t current_time, prev_time, delta_time; in main() local
202 current_time = time(NULL); in main()
204 delta_time = current_time - prev_time; in main()
215 prev_time = current_time; in main()
Dcpuctl_test03.c102 time_t current_time, prev_time, delta_time; in main() local
194 current_time = time(NULL); in main()
195 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */ in main()
203 prev_time = current_time; in main()
Dcpuctl_test01.c102 time_t current_time, prev_time, delta_time; in main() local
187 current_time = time(NULL); in main()
188 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */ in main()
196 prev_time = current_time; in main()
Dcpuctl_test04.c103 time_t current_time, prev_time, delta_time; in main() local
205 current_time = time(NULL); in main()
206 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */ in main()
214 prev_time = current_time; in main()
Dcpuctl_def_task04.c102 time_t current_time, prev_time, delta_time; in main() local
208 current_time = time(NULL); in main()
210 delta_time = current_time - prev_time; in main()
221 prev_time = current_time; in main()
Dcpuctl_test02.c106 time_t current_time, prev_time, delta_time; in main() local
198 current_time = time(NULL); in main()
199 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */ in main()
207 prev_time = current_time; in main()
/external/autotest/server/hosts/
Dabstract_ssh.py661 current_time = int(time.time())
662 end_time = current_time + timeout
665 while not timeout or current_time < end_time:
666 if self.is_up(timeout=end_time - current_time,
679 current_time = int(time.time())
718 current_time = int(time.time())
719 end_time = current_time + timeout
722 warn_time = current_time + warning_timer
742 while current_time < end_time:
743 ping_timeout = min(end_time - current_time, max_ping_timeout)
[all …]
/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py542 current_time = 1484695987.209386
545 mock_time.return_value = current_time
555 mock_time.return_value = current_time
558 mock_time.return_value = current_time + 0.5
566 mock_time.return_value = current_time + 2.5
569 mock_time.return_value = current_time + 2.6
572 mock_time.return_value = current_time + 2.7
580 mock_time.return_value = current_time + 10
589 current_time = 1484695987.209386
592 mock_time.return_value = current_time
[all …]
/external/libchrome/base/time/
Dpr_time_unittest.cc75 time_t current_time = 0; in TEST_F() local
76 time(&current_time); in TEST_F()
82 localtime_s(&local_time, &current_time); in TEST_F()
85 localtime_r(&current_time, &local_time); in TEST_F()
89 PRTime current_time64 = static_cast<PRTime>(current_time) * PR_USEC_PER_SEC; in TEST_F()
/external/ltp/testcases/open_posix_testsuite/functional/threads/condvar/
Dpthread_cond_wait_1.c84 struct timespec start_time, current_time; in low_prio_thread() local
99 clock_gettime(CLOCK_REALTIME, &current_time); in low_prio_thread()
100 if (timediff(current_time, start_time) > RUNTIME) in low_prio_thread()

1234