Searched refs:seconds (Results 1 - 8 of 8) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_chrono.py17 # There should never be a days/seconds difference
19 assert diff.seconds == 0
21 # We test that no more than about 0.5 seconds passes here
39 assert diff.seconds == 0
59 assert diff.seconds == 0
112 assert cpp_diff.seconds == diff.seconds
125 assert cpp_diff.seconds == diff.seconds
138 assert cpp_diff.seconds
[all...]
/gem5/src/unittest/
H A Dcprintftime.cc49 do_test(int seconds) argument
52 alarm(seconds);
/gem5/src/dev/net/
H A Detherdump.cc69 uint32_t seconds; member in struct:pcap_pkthdr
97 pkthdr.seconds = curTick() / SimClock::Int::s;
/gem5/src/systemc/core/
H A Dsc_time.cc319 double seconds = d * sc_gem5::TimeUnitScale[tu]; local
320 if (seconds < sc_gem5::TimeUnitScale[SC_FS])
323 if (seconds > defaultUnit) {
325 defaultUnit = seconds;
378 // Normalize d to seconds.
/gem5/src/base/
H A Dtime.hh128 double seconds = floor(new_time); local
129 sec((time_t)seconds);
130 nsec((long)((seconds - new_time) * 1e9));
151 * Get the time in floating point seconds
/gem5/ext/pybind11/include/pybind11/
H A Dchrono.h24 #define PyDateTime_DELTA_GET_SECONDS(o) (((PyDateTime_Delta*)o)->seconds)
51 + seconds(PyDateTime_DELTA_GET_SECONDS(src.ptr()))
55 // If invoked with a float we assume it is seconds and convert
167 (duration_cast<us_t>(src.time_since_epoch() % seconds(1))).count());
/gem5/ext/googletest/googletest/test/
H A Dgtest_xml_output_unittest.py197 self.assertTrue(time_delta < datetime.timedelta(seconds=600),
/gem5/ext/googletest/googletest/src/
H A Dgtest.cc3549 // Formats the given time in milliseconds as seconds.
3556 static bool PortableLocaltime(time_t seconds, struct tm* out) { argument
3558 return localtime_s(out, &seconds) == 0;
3562 struct tm* tm_ptr = localtime(&seconds); // NOLINT
3568 return localtime_r(&seconds, out) != NULL;

Completed in 32 milliseconds