| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | timerfd.cpp | 15 its.it_value.tv_sec = 0; in main() 17 its.it_interval.tv_sec = its.it_value.tv_sec; in main() 26 assert(its2.it_interval.tv_sec == its.it_interval.tv_sec); in main() 28 assert(its2.it_value.tv_sec <= its.it_value.tv_sec); in main() 34 assert(its3.it_interval.tv_sec == its.it_interval.tv_sec); in main() 36 assert(its3.it_value.tv_sec <= its.it_value.tv_sec); in main()
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | DNBTimer.h | 59 return (uint64_t)(m_timeval.tv_sec) * 1000000ull + in TotalMicroSeconds() 65 sec = m_timeval.tv_sec; in GetTime() 75 (uint64_t)(now.tv_sec) * 1000000ull + (uint64_t)now.tv_usec; in ElapsedMicroSeconds() 77 (uint64_t)(m_timeval.tv_sec) * 1000000ull + (uint64_t)m_timeval.tv_usec; in ElapsedMicroSeconds() 89 (uint64_t)(now.tv_sec) * 1000000ull + (uint64_t)now.tv_usec; in GetTimeOfDay() 108 ts->tv_sec = ts->tv_sec + ts->tv_nsec / 1000000000 + sec_offset; 116 if (now.tv_sec > ts.tv_sec) in TimeOfDayLaterThan() 118 else if (now.tv_sec < ts.tv_sec) in TimeOfDayLaterThan()
|
| H A D | DNBLog.cpp | 122 if (g_timeval.tv_sec == 0) { in _DNBLogThreaded() 123 delta.tv_sec = 0; in _DNBLogThreaded() 138 ++g_message_id, delta.tv_sec, delta.tv_usec, getpid(), in _DNBLogThreaded() 164 if (g_timeval.tv_sec == 0) { in _DNBLogThreadedIf() 165 delta.tv_sec = 0; in _DNBLogThreadedIf() 180 ++g_message_id, delta.tv_sec, delta.tv_usec, getpid(), in _DNBLogThreadedIf()
|
| /llvm-project-15.0.7/libcxx/include/__support/ibm/ |
| H A D | nanosleep.h | 20 if (__req->tv_sec < 0 || __req->tv_nsec < 0 || __req->tv_nsec > 999999999) { in nanosleep() 25 time_t __sec = __req->tv_sec; in nanosleep() 34 __rem->tv_sec = __sec; in nanosleep() 45 __rem->tv_sec = 0; in nanosleep()
|
| /llvm-project-15.0.7/compiler-rt/test/dfsan/ |
| H A D | sigaction_stress_test.c | 48 itv.it_interval.tv_sec = 0; in main() 50 itv.it_value.tv_sec = 0; in main() 59 itv.it_interval.tv_sec = 0; in main() 61 itv.it_value.tv_sec = 0; in main()
|
| /llvm-project-15.0.7/third-party/benchmark/src/ |
| H A D | cycleclock.h | 140 return static_cast<int64_t>(ts.tv_sec) * 1000000000 + ts.tv_nsec; in Now() 169 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now() 175 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now() 179 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now() 214 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now()
|
| H A D | timers.cc | 84 return (static_cast<double>(ru.ru_utime.tv_sec) + 86 static_cast<double>(ru.ru_stime.tv_sec) + 100 return ts.tv_sec + (static_cast<double>(ts.tv_nsec) * 1e-9); in MakeTime()
|
| /llvm-project-15.0.7/compiler-rt/test/msan/ |
| H A D | signal_stress_test.cpp | 44 itv.it_interval.tv_sec = 0; in main() 46 itv.it_value.tv_sec = 0; in main() 66 itv.it_interval.tv_sec = 0; in main() 68 itv.it_value.tv_sec = 0; in main()
|
| /llvm-project-15.0.7/compiler-rt/test/msan/Linux/ |
| H A D | poll.cpp | 17 ts.tv_sec = 0; in main() 23 __msan_poison(&ts.tv_sec, sizeof(ts.tv_sec)); in main()
|
| /llvm-project-15.0.7/libcxx/include/__chrono/ |
| H A D | convert_to_timespec.h | 34 typedef decltype(__ts.tv_sec) __ts_sec; in __convert_to_timespec() 39 __ts.tv_sec = static_cast<__ts_sec>(__s.count()); in __convert_to_timespec() 44 __ts.tv_sec = __ts_sec_max; in __convert_to_timespec()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/ |
| H A D | cond_version.c | 31 ts1.tv_sec += 2; in main() 40 sleep = (u64)ts2.tv_sec * 1000000000 + ts2.tv_nsec - in main() 41 ((u64)ts0.tv_sec * 1000000000 + ts0.tv_nsec); in main()
|
| H A D | bench.h | 27 (tp1.tv_sec * 1000000000ULL + tp1.tv_nsec) - in main() 28 (tp0.tv_sec * 1000000000ULL + tp0.tv_nsec); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/ |
| H A D | last_write_time.pass.cpp | 57 int64_t tv_sec; member 69 ret.tv_sec = li.QuadPart / 10000000 - FILE_TIME_OFFSET_SECS; in filetime_to_timespec() 110 using SecFieldT = decltype(TimeSpec::tv_sec); in ConvertToTimeSpec() 129 ts.tv_sec = secs.count(); in ConvertToTimeSpec() 135 auto secs_part = duration_cast<file_time_type::duration>(Sec(ts.tv_sec)); in ConvertFromTimeSpec() 136 if (duration_cast<Sec>(secs_part).count() != ts.tv_sec) in ConvertFromTimeSpec() 147 return ts2.tv_sec == ts.tv_sec && ts2.tv_nsec == ts.tv_nsec; in CompareTimeExact() 216 return !ec && new_write_time.tv_sec < 0; in __anonc8913b790202() 235 return !ec && new_write_time.tv_sec > max_ts.tv_sec - 1; in __anonc8913b790302() 253 return !ec && new_write_time.tv_sec < min_ts.tv_sec + 1; in __anonc8913b790402() [all …]
|
| /llvm-project-15.0.7/libcxx/src/filesystem/ |
| H A D | filesystem_common.h | 258 int64_t tv_sec; member 398 if (tm.tv_sec >= 0) { 399 return tm.tv_sec < max_seconds || 400 (tm.tv_sec == max_seconds && tm.tv_nsec <= max_nsec); 401 } else if (tm.tv_sec == (min_seconds - 1)) { 404 return tm.tv_sec >= min_seconds; 423 if (tm.tv_sec >= 0 || tm.tv_nsec == 0) { 424 return FileTimeT(fs_seconds(tm.tv_sec) + 429 auto Dur = fs_seconds(tm.tv_sec + 1) - adj_subsec; 456 return set_times_checked(&dest.tv_sec, &dest.tv_nsec, tp); [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/Unix/ |
| H A D | Unix.h | 82 return std::chrono::seconds(TV.tv_sec) + in toDuration() 91 RetVal.tv_sec = toTimeT(TP); in toTimeSpec() 101 RetVal.tv_sec = toTimeT(TP); in toTimeVal()
|
| /llvm-project-15.0.7/libcxx/src/ |
| H A D | chrono.cpp | 125 return system_clock::time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); 133 return system_clock::time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); 232 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now() 270 return steady_clock::time_point(seconds(ts.tv_sec) + nanoseconds(ts.tv_nsec)); in __libcpp_steady_clock_now() 290 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now()
|
| H A D | condition_variable.cpp | 64 typedef decltype(ts.tv_sec) ts_sec; in __do_timed_wait() 68 ts.tv_sec = static_cast<ts_sec>(s.count()); in __do_timed_wait() 73 ts.tv_sec = ts_sec_max; in __do_timed_wait()
|
| /llvm-project-15.0.7/openmp/runtime/test/ |
| H A D | omp_my_sleep.h | 26 ts.tv_sec = (time_t)sleeptime; in my_sleep() 27 ts.tv_nsec = (long)((sleeptime - (double)ts.tv_sec) * 1E9); in my_sleep()
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_tsc.h | 73 TS.tv_sec = 0; in readTSC() 77 return TS.tv_sec * NanosecondsPerSecond + TS.tv_nsec; in readTSC()
|
| /llvm-project-15.0.7/libcxx/docs/DesignDocs/ |
| H A D | FileTimeType.rst | 31 time_t tv_sec; 117 new_times.tv_sec = numeric_limits<time_t>::max(); 212 auto dur = seconds(ts.tv_sec) + nanoseconds(ts.tv_nsec); 222 auto dur = fs_seconds(ts.tv_sec) + fs_nanoseconds(tv.tv_nsec); 263 : tv_sec(v / nano::den), tv_nsec(v % nano::den) 266 time_t tv_sec; 281 a nanosecond tick period; which is the only case where the names ``tv_sec`` 285 use ``tv_sec`` to represent the number of giga seconds, and ``tv_nsec`` the 309 // tv_sec is now representing gigaseconds. 310 return secs.count().tv_sec; // Oops! [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
| H A D | last_write_time.pass.cpp | 47 ToTime.tv_sec = std::numeric_limits<decltype(ToTime.tv_sec)>::max(); in TEST_CASE()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/elf-core/ |
| H A D | ThreadElfCore.cpp | 290 pr_utime.tv_sec = data.GetAddress(&offset); in Parse() 293 pr_stime.tv_sec = data.GetAddress(&offset); in Parse() 296 pr_cutime.tv_sec = data.GetAddress(&offset); in Parse() 299 pr_cstime.tv_sec = data.GetAddress(&offset); in Parse()
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/ARM/ |
| H A D | PR26163.ll | 25 ; long long tv_sec; 38 ; lifetime.tv_sec = value; 95 !19 = !DIDerivedType(tag: DW_TAG_member, name: "tv_sec", scope: !17, file: !5, line: 3, baseType: !…
|
| /llvm-project-15.0.7/libcxx/test/libcxx/input.output/filesystems/ |
| H A D | convert_file_time.pass.cpp | 113 return new_ts.tv_sec == orig.tv_sec && new_ts.tv_nsec == orig.tv_nsec; in check_round_trip() 262 TimeT tv_sec; member
|
| /llvm-project-15.0.7/compiler-rt/test/xray/TestCases/Posix/ |
| H A D | basic-filtering.cpp | 44 sleep.tv_sec = 0; in always_shows()
|