Home
last modified time | relevance | path

Searched refs:new_time (Results 1 – 25 of 29) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/stime/
Dstime01.c27 time_t new_time; in run() local
33 new_time = real_time_tv.tv_sec + 30; in run()
35 if (do_stime(&new_time) < 0) { in run()
36 tst_res(TFAIL | TERRNO, "stime(%ld) failed", new_time); in run()
43 switch (pres_time_tv.tv_sec - new_time) { in run()
47 tst_res(TPASS, "system time was set to %ld", new_time); in run()
51 new_time, pres_time_tv.tv_sec); in run()
Dstime02.c25 static time_t new_time; variable
29 TEST(do_stime(&new_time)); in run()
58 new_time = curr_time + 10; in setup()
/external/llvm-project/llvm/utils/benchmark/src/
Dreporter.cc76 double new_time = real_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedRealTime() local
77 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedRealTime()
78 return new_time; in GetAdjustedRealTime()
82 double new_time = cpu_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedCPUTime() local
83 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedCPUTime()
84 return new_time; in GetAdjustedCPUTime()
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dreporter.cc94 double new_time = real_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedRealTime() local
95 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedRealTime()
96 return new_time; in GetAdjustedRealTime()
100 double new_time = cpu_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedCPUTime() local
101 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedCPUTime()
102 return new_time; in GetAdjustedCPUTime()
/external/google-benchmark/src/
Dreporter.cc94 double new_time = real_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedRealTime() local
95 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedRealTime()
96 return new_time; in GetAdjustedRealTime()
100 double new_time = cpu_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedCPUTime() local
101 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedCPUTime()
102 return new_time; in GetAdjustedCPUTime()
/external/libcxx/utils/google-benchmark/src/
Dreporter.cc94 double new_time = real_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedRealTime() local
95 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedRealTime()
96 return new_time; in GetAdjustedRealTime()
100 double new_time = cpu_accumulated_time * GetTimeUnitMultiplier(time_unit); in GetAdjustedCPUTime() local
101 if (iterations != 0) new_time /= static_cast<double>(iterations); in GetAdjustedCPUTime()
102 return new_time; in GetAdjustedCPUTime()
/external/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/
Dlast_write_time.pass.cpp440 file_time_type new_time; in TEST_CASE() member
459 last_write_time(TC.p, TC.new_time, ec); in TEST_CASE()
466 if (TimeIsRepresentableByFilesystem(TC.new_time)) { in TEST_CASE()
468 TEST_CHECK(CompareTime(got_time, TC.new_time)); in TEST_CASE()
483 const file_time_type new_time = Clock::now() + Hours(3); in TEST_CASE() local
489 last_write_time(sym, new_time, ec); in TEST_CASE()
495 TEST_CHECK(got_time == new_time); in TEST_CASE()
497 TEST_CHECK(CompareTime(got_time, new_time)); in TEST_CASE()
500 TEST_CHECK(CompareTime(LastWriteTime(file), new_time)); in TEST_CASE()
512 file_time_type new_time = file_time_type::min(); in TEST_CASE() local
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/
Dlast_write_time.pass.cpp443 file_time_type new_time; in TEST_CASE() member
463 last_write_time(TC.p, TC.new_time, ec); in TEST_CASE()
470 if (TimeIsRepresentableByFilesystem(TC.new_time)) { in TEST_CASE()
472 TEST_CHECK(CompareTime(got_time, TC.new_time)); in TEST_CASE()
487 const file_time_type new_time = Clock::now() + Hours(3); in TEST_CASE() local
493 last_write_time(sym, new_time, ec); in TEST_CASE()
499 TEST_CHECK(got_time == new_time); in TEST_CASE()
501 TEST_CHECK(CompareTime(got_time, new_time)); in TEST_CASE()
504 TEST_CHECK(CompareTime(LastWriteTime(file), new_time)); in TEST_CASE()
516 file_time_type new_time = file_time_type::min(); in TEST_CASE() local
[all …]
/external/webrtc/rtc_base/
Dfake_clock.cc23 void FakeClock::SetTime(webrtc::Timestamp new_time) { in SetTime() argument
25 RTC_DCHECK(new_time.us() * 1000 >= time_ns_); in SetTime()
26 time_ns_ = new_time.us() * 1000; in SetTime()
Dfake_clock.h41 void SetTime(webrtc::Timestamp new_time);
/external/webrtc/modules/audio_coding/neteq/tools/
Drtp_jitter.cc108 int new_time; in RunRtpJitter() local
109 while (timing_file >> new_time) { in RunRtpJitter()
110 new_arrival_times.push_back(new_time); in RunRtpJitter()
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dlocal_path_info_unittest.py18 new_time = time0 + (days * 24 * 60 * 60)
19 os.utime(path, (new_time, new_time))
/external/llvm/include/llvm/Support/
DTimeValue.h106 explicit TimeValue( double new_time ) in TimeValue() argument
108 SecondsType integer_part = static_cast<SecondsType>( new_time ); in TimeValue()
110 nanos_ = static_cast<NanoSecondsType>( (new_time - in TimeValue()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DTimeValue.h106 explicit TimeValue( double new_time ) in TimeValue() argument
108 SecondsType integer_part = static_cast<SecondsType>( new_time ); in TimeValue()
110 nanos_ = static_cast<NanoSecondsType>( (new_time - in TimeValue()
/external/autotest/server/cros/storage/
Dstorage_validate_unittest.py56 new_time = time.localtime(secs + (days * 24 * 60 * 60))
57 return time.strftime(profile_constants.TIME_PATTERN, new_time)
/external/rust/crates/quiche/src/recovery/
Dmod.rs517 let new_time = self.loss_time[e]; in loss_time_and_space() localVariable
519 if time.is_none() || new_time < time { in loss_time_and_space()
520 time = new_time; in loss_time_and_space()
561 let new_time = in pto_time_and_space() localVariable
564 if pto_timeout.is_none() || new_time < pto_timeout { in pto_time_and_space()
565 pto_timeout = new_time; in pto_time_and_space()
/external/rust/crates/tokio/src/time/driver/
Dentry.rs528 pub(crate) fn reset(mut self: Pin<&mut Self>, new_time: Instant) { in reset()
531 let tick = self.driver.time_source().deadline_to_tick(new_time); in reset()
/external/libcxx/include/experimental/
Dfilesystem178 void last_write_time(const path& p, file_time_type new_time);
179 void last_write_time(const path& p, file_time_type new_time,
/external/llvm-project/libcxx/include/experimental/
Dfilesystem177 void last_write_time(const path& p, file_time_type new_time);
178 void last_write_time(const path& p, file_time_type new_time,
/external/icing/icing/scoring/
Dscorer_test.cc98 void SetFakeClock1Time(int64_t new_time) { in SetFakeClock1Time() argument
99 fake_clock1_.SetSystemTimeMilliseconds(new_time); in SetFakeClock1Time()
/external/python/cpython2/Modules/
Ddatetimemodule.c721 #define new_time(hh, mm, ss, us, tzinfo) \ macro
3427 temp = new_time(hour, minute, in time_hash()
4511 return new_time(DATE_GET_HOUR(self), in datetime_gettime()
4521 return new_time(DATE_GET_HOUR(self), in datetime_gettimetz()
4828 x = new_time(0, 0, 0, 0, Py_None); in initdatetime()
4833 x = new_time(23, 59, 59, 999999, Py_None); in initdatetime()
/external/autotest/client/cros/power/
Dpower_status.py2563 new_time = time.time()
2565 self._stats[state] += new_time - self._time
2567 self._stats[state] = new_time - self._time
2568 self._time = new_time
/external/python/cpython3/Modules/
D_datetimemodule.c1018 #define new_time(hh, mm, ss, us, tzinfo, fold) \ macro
4612 t = new_time(hour, minute, second, microsecond, tzinfo, 0); in time_fromisoformat()
6223 return new_time(DATE_GET_HOUR(self), in datetime_gettime()
6234 return new_time(DATE_GET_HOUR(self), in datetime_gettimetz()
6598 x = new_time(0, 0, 0, 0, Py_None, 0); in PyInit__datetime()
6603 x = new_time(23, 59, 59, 999999, Py_None, 0); in PyInit__datetime()
/external/llvm-project/libcxx/src/filesystem/
Doperations.cpp1003 void __last_write_time(const path& p, file_time_type new_time, error_code* ec) { in __last_write_time() argument
1022 if (!fs_time::convert_to_timespec(tbuf[1], new_time)) in __last_write_time()
/external/libcxx/src/filesystem/
Doperations.cpp1016 void __last_write_time(const path& p, file_time_type new_time, error_code* ec) { in __last_write_time() argument
1035 if (!fs_time::convert_to_timespec(tbuf[1], new_time)) in __last_write_time()

12