Home
last modified time | relevance | path

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

12345

/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/tensorflow/tensorflow/lite/micro/examples/micro_speech/arduino/
Dcommand_responder.cc23 int32_t current_time, const char* found_command, in RespondToCommand() argument
46 current_time); in RespondToCommand()
49 last_command_time = current_time; in RespondToCommand()
54 last_command_time = current_time; in RespondToCommand()
59 last_command_time = current_time; in RespondToCommand()
67 if (last_command_time < (current_time - 3000)) { in RespondToCommand()
/external/python/oauth2client/tests/
Dtest_crypt.py201 current_time = 123456
204 'exp': current_time + crypt.MAX_TOKEN_LIFETIME_SECS + 1,
208 return_value=current_time)
216 current_time = 123456
218 'iat': current_time + crypt.CLOCK_SKEW_SECS + 1,
219 'exp': current_time + crypt.MAX_TOKEN_LIFETIME_SECS - 1,
223 return_value=current_time)
231 current_time = 123456
233 'iat': current_time,
234 'exp': current_time - crypt.CLOCK_SKEW_SECS - 1,
[all …]
/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/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/perfetto/src/perfetto_cmd/
Drate_limiter_unittest.cc180 args.current_time = base::TimeSeconds(41); in TEST()
202 args.current_time = base::TimeSeconds(10000); in TEST()
230 args.current_time = base::TimeSeconds(input.last_trace_timestamp() + 60 * 10); in TEST()
243 static_cast<uint64_t>(args.current_time.count())); in TEST()
259 args.current_time = base::TimeSeconds(input.last_trace_timestamp() + 60 * 10); in TEST()
272 static_cast<uint64_t>(args.current_time.count())); in TEST()
280 static_cast<uint64_t>(args.current_time.count())); in TEST()
316 args.current_time = base::TimeSeconds(99); in TEST()
344 args.current_time = base::TimeSeconds(60 * 60); in TEST()
365 args.current_time = base::TimeSeconds(60 * 60); in TEST()
[all …]
/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/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/python/oauth2client/tests/contrib/
Dtest_xsrfutil.py156 current_time=curr_time))
174 current_time=curr_time,
198 current_time=curr_time,
215 current_time=curr_time,
236 current_time=TEST_TIME))
244 current_time=later15mins))
252 current_time=later2hours))
259 current_time=later15mins))
266 current_time=later15mins))
273 current_time=later15mins))
[all …]
/external/python/cryptography/src/cryptography/
Dfernet.py50 current_time = int(time.time())
52 return self._encrypt_from_parts(data, current_time, iv)
54 def _encrypt_from_parts(self, data, current_time, iv): argument
65 b"\x80" + struct.pack(">Q", current_time) + iv + ciphertext
109 current_time = int(time.time())
111 if timestamp + ttl < current_time:
114 if current_time + _MAX_CLOCK_SKEW < timestamp:
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/
Dmain_functions.cc125 const int32_t current_time = LatestAudioTimestamp(); in loop() local
128 error_reporter, previous_time, current_time, &how_many_new_slices); in loop()
133 previous_time = current_time; in loop()
159 output, current_time, &found_command, &score, &is_new_command); in loop()
167 RespondToCommand(error_reporter, current_time, found_command, score, in loop()
/external/python/oauth2client/oauth2client/contrib/
Dxsrfutil.py66 def validate_token(key, token, user_id, action_id="", current_time=None): argument
90 if current_time is None:
91 current_time = time.time()
93 if current_time - token_time > DEFAULT_TIMEOUT_SECS:
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/apollo3evb/
Dcommand_responder.cc26 int32_t current_time, const char* found_command, in RespondToCommand() argument
29 int32_t TimeSinceLastCommand = (current_time - g_PreviousCommandTimestamp); in RespondToCommand()
56 g_PreviousCommandTimestamp = current_time; in RespondToCommand()
58 current_time); in RespondToCommand()
/external/python/cryptography/tests/
Dtest_fernet.py72 current_time = calendar.timegm(iso8601.parse_date(now).utctimetuple())
73 monkeypatch.setattr(time, "time", lambda: current_time)
80 current_time = calendar.timegm(iso8601.parse_date(now).utctimetuple())
81 monkeypatch.setattr(time, "time", lambda: current_time)
112 current_time = calendar.timegm(iso8601.parse_date(ts).utctimetuple())
113 monkeypatch.setattr(time, "time", lambda: current_time)
127 current_time = 1526138327
128 monkeypatch.setattr(time, "time", lambda: current_time)
130 assert f.extract_timestamp(token) == current_time
/external/python/cryptography/tests/x509/
Dtest_ocsp.py334 current_time = datetime.datetime.utcnow().replace(microsecond=0)
335 this_update = current_time - datetime.timedelta(days=1)
348 current_time = datetime.datetime.utcnow().replace(microsecond=0)
349 this_update = current_time - datetime.timedelta(days=1)
364 current_time = datetime.datetime.utcnow().replace(microsecond=0)
365 this_update = current_time - datetime.timedelta(days=1)
376 assert (current_time - resp.produced_at).total_seconds() < 10
392 current_time = datetime.datetime.utcnow().replace(microsecond=0)
393 this_update = current_time - datetime.timedelta(days=1)
416 current_time = datetime.datetime.utcnow().replace(microsecond=0)
[all …]
/external/v8/src/heap/cppgc/
Dstats-collector.cc97 v8::base::TimeTicks current_time = v8::base::TimeTicks::Now(); in GetRecentAllocationSpeedInBytesPerMs() local
98 DCHECK_LE(time_of_last_end_of_marking_, current_time); in GetRecentAllocationSpeedInBytesPerMs()
99 if (time_of_last_end_of_marking_ == current_time) return 0; in GetRecentAllocationSpeedInBytesPerMs()
101 (current_time - time_of_last_end_of_marking_).InMillisecondsF(); in GetRecentAllocationSpeedInBytesPerMs()
/external/toolchain-utils/crosperf/
Dexperiment_status.py39 current_time = time.time()
41 elapsed_time = current_time - self.experiment.start_time
47 self.new_job_start_time = current_time
49 elapsed_time - (current_time - self.new_job_start_time))
74 (current_time - self.new_job_start_time)))
/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/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/grpc-grpc/src/php/tests/interop/
Dstress_client.php45 $current_time = microtime(true);
46 if ($deadline && $current_time > $deadline) {
52 $qps = round($count / ($current_time - $start_time));
/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_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_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()

12345