Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/libcxxabi/test/support/
H A Dtimer.h18 class timer
24 timer() : m_start(Clock::now()) {} in timer() function
26 timer(timer const &) = delete;
27 timer & operator=(timer const &) = delete;
29 ~timer() in ~timer()
43 class timer
46 timer() {} in timer() function
47 timer(timer const &) = delete;
48 timer & operator=(timer const &) = delete;
49 ~timer() {} in ~timer()
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DTiming.h273 TimingScope() : timer() {} in TimingScope()
275 if (timer) in TimingScope()
276 timer.start(); in TimingScope()
279 if (timer) in TimingScope()
280 timer.start(); in TimingScope()
282 TimingScope(TimingScope &&other) : timer(std::move(other.timer)) {} in TimingScope()
287 timer = std::move(other.timer);
300 timer.stop(); in stop()
301 timer = Timer(); in stop()
315 void hide() { timer.hide(); } in hide()
[all …]
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Dsignal_block2.cpp56 struct itimerval timer; in main() local
57 timer.it_value.tv_sec = 0; in main()
58 timer.it_value.tv_usec = 50000; in main()
59 timer.it_interval = timer.it_value; in main()
60 if (setitimer(ITIMER_REAL, &timer, NULL)) in main()
82 memset(&timer, 0, sizeof(timer)); in main()
83 if (setitimer(ITIMER_REAL, &timer, NULL)) in main()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/
H A Duar_signals.cpp34 struct itimerval timer; in EnableSigprof() local
35 timer.it_interval.tv_sec = 0; in EnableSigprof()
36 timer.it_interval.tv_usec = 1; in EnableSigprof()
37 timer.it_value = timer.it_interval; in EnableSigprof()
38 if (setitimer(ITIMER_PROF, &timer, 0) != 0) { in EnableSigprof()
/llvm-project-15.0.7/compiler-rt/test/tsan/libdispatch/
H A Dsource-serial.c14 dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, q); in main() local
16 …dispatch_source_set_timer(timer, dispatch_time(DISPATCH_TIME_NOW, 0), interval_ms * NSEC_PER_MSEC,… in main()
19 dispatch_source_set_event_handler(timer, ^{ in main()
25 dispatch_suspend(timer); in main()
28 dispatch_resume(timer); in main()
/llvm-project-15.0.7/compiler-rt/lib/asan/tests/
H A Dasan_mac_test_helpers.mm165 dispatch_source_t timer =
167 // Schedule the timer one second from the current time.
171 dispatch_source_set_timer(timer, milestone, DISPATCH_TIME_FOREVER, 0);
173 dispatch_source_set_event_handler(timer, ^{
176 dispatch_resume(timer);
182 dispatch_source_t timer =
184 // Schedule the timer one second from the current time.
194 dispatch_source_set_event_handler(timer, ^{
195 dispatch_source_cancel(timer);
197 dispatch_source_set_cancel_handler(timer, ^{
[all …]
/llvm-project-15.0.7/libc/test/src/math/differential_testing/
H A DSingleInputSingleOutputDiff.h62 Timer timer; in runPerfInRange() local
63 timer.start(); in runPerfInRange()
65 timer.stop(); in runPerfInRange()
68 double myAverage = static_cast<double>(timer.nanoseconds()) / numberOfRuns; in runPerfInRange()
70 log << " Total time : " << timer.nanoseconds() << " ns \n"; in runPerfInRange()
H A DBinaryOpSingleOutputDiff.h80 Timer timer; in run_perf_in_range() local
81 timer.start(); in run_perf_in_range()
83 timer.stop(); in run_perf_in_range()
85 double my_average = static_cast<double>(timer.nanoseconds()) / N; in run_perf_in_range()
87 log << " Total time : " << timer.nanoseconds() << " ns \n"; in run_perf_in_range()
/llvm-project-15.0.7/libcxx/include/
H A Dctime36 time_t time(time_t* timer);
38 char* ctime(const time_t* timer);
39 tm* gmtime(const time_t* timer);
40 tm* localtime(const time_t* timer);
/llvm-project-15.0.7/libc/src/time/
H A Dgmtime.cpp15 LLVM_LIBC_FUNCTION(struct tm *, gmtime, (const time_t *timer)) {
17 return time_utils::gmtime_internal(timer, &tm_out);
H A Dgmtime_r.cpp16 (const time_t *timer, struct tm *result)) {
17 return time_utils::gmtime_internal(timer, result);
H A Dtime_utils.h116 static inline struct tm *gmtime_internal(const time_t *timer, in gmtime_internal() argument
118 int64_t seconds = *timer; in gmtime_internal()
H A Dgmtime.h16 struct tm *gmtime(const time_t *timer);
H A Dgmtime_r.h16 struct tm *gmtime_r(const time_t *timer, struct tm *result);
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dbenchmark_runner.cc121 internal::ThreadTimer timer( in RunInThread() local
126 b->Run(iters, thread_id, &timer, manager, perf_counters_measurement); in RunInThread()
133 results.cpu_time_used += timer.cpu_time_used(); in RunInThread()
134 results.real_time_used += timer.real_time_used(); in RunInThread()
135 results.manual_time_used += timer.manual_time_used(); in RunInThread()
H A Dbenchmark_api_internal.cc87 IterationCount iters, int thread_id, internal::ThreadTimer* timer, in Run() argument
90 State st(iters, args_, thread_id, threads_, timer, manager, in Run()
H A Dbenchmark_api_internal.h44 State Run(IterationCount iters, int thread_id, internal::ThreadTimer* timer,
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_stats.cpp277 void partitionedTimers::init(explicitTimer timer) { in init() argument
279 timer_stack.push_back(timer); in init()
287 void partitionedTimers::push(explicitTimer timer) { in push() argument
295 timer_stack.push_back(timer); in push()
321 void partitionedTimers::exchange(explicitTimer timer) { in exchange() argument
334 timer_stack.push_back(timer); in exchange()
498 time_t timer; in getTime() local
500 time(&timer); in getTime()
502 struct tm *tm_info = localtime(&timer); in getTime()
H A Dkmp_stats.h526 void init(explicitTimer timer);
527 void exchange(explicitTimer timer);
528 void push(explicitTimer timer);
539 blockPartitionedTimer(partitionedTimers *pt, explicitTimer timer) in blockPartitionedTimer() argument
541 part_timers->push(timer); in blockPartitionedTimer()
H A Dkmp_stats_timing.h61 #error Must have high resolution timer defined
/llvm-project-15.0.7/mlir/lib/Support/
H A DTiming.cpp325 std::function<void(TimerImpl *)> addTimer = [&](TimerImpl *timer) { in printAsList() argument
326 mergedTimers[timer->name] += timer->getTimeRecord(); in printAsList()
327 for (auto &children : timer->children) in printAsList()
/llvm-project-15.0.7/libcxxabi/test/
H A Ddynamic_cast_stress.pass.cpp60 timer t; in test()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dstd-c-library-functions-POSIX.c262 struct tm *localtime_r(const time_t *restrict timer, struct tm *restrict result);
265 struct tm *gmtime_r(const time_t *restrict timer, struct tm *restrict result);
/llvm-project-15.0.7/third-party/benchmark/docs/
H A Dperf_counters.md19 handled at the boundaries where timer collection is also handled.
/llvm-project-15.0.7/flang/runtime/
H A Dtime-intrinsic.cpp270 time_t timer{t.tv_sec}; in GetDateAndTime() local
272 localtime_r(&timer, &localTime); in GetDateAndTime()

12