Home
last modified time | relevance | path

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

12

/llvm-project/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/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/mlir/include/mlir/Support/
H A DTiming.h275 TimingScope(const Timer &other) : timer(other) { in TimingScope()
276 if (timer) in TimingScope()
277 timer.start(); in TimingScope()
279 TimingScope(Timer &&other) : timer(std::move(other)) { in TimingScope()
280 if (timer) in TimingScope()
281 timer.start(); in TimingScope()
283 TimingScope(TimingScope &&other) : timer(std::move(other.timer)) {} in TimingScope()
288 timer = std::move(other.timer);
293 explicit operator bool() const { return bool(timer); }
301 timer.stop(); in stop()
[all …]
/llvm-project/compiler-rt/test/lsan/TestCases/Darwin/
H A Ddispatch_continuations.mm11 dispatch_source_t timer =
13 dispatch_source_set_event_handler(timer, ^{
15 dispatch_source_set_timer(timer, DISPATCH_TIME_FOREVER, DISPATCH_TIME_FOREVER,
17 dispatch_resume(timer);
19 dispatch_source_cancel(timer);
20 dispatch_release(timer);
/llvm-project/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/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/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.
188 dispatch_source_set_timer(timer, milestone, DISPATCH_TIME_FOREVER, 0);
194 dispatch_source_set_event_handler(timer, ^{
195 dispatch_source_cancel(timer);
[all …]
/llvm-project/libc/test/src/math/performance_testing/
H A DSingleInputSingleOutputPerf.h48 Timer timer; in runPerfInRange()
49 timer.start(); in runPerfInRange()
51 timer.stop(); in runPerfInRange()
53 double myAverage = static_cast<double>(timer.nanoseconds()) / n / rounds; in runPerfInRange()
55 log << " Total time : " << timer.nanoseconds() << " ns \n"; in runPerfInRange()
60 timer.start(); in runPerfInRange()
62 timer.stop(); in runPerfInRange()
64 double otherAverage = static_cast<double>(timer.nanoseconds()) / n / rounds; in runPerfInRange()
66 log << " Total time : " << timer.nanoseconds() << " ns \n"; in runPerfInRange()
41 Timer timer; runPerfInRange() local
H A DBinaryOpSingleOutputPerf.h55 Timer timer; in run_perf_in_range()
56 timer.start(); in run_perf_in_range()
58 timer.stop(); in run_perf_in_range()
60 double my_average = static_cast<double>(timer.nanoseconds()) / N / rounds; in run_perf_in_range()
62 log << " Total time : " << timer.nanoseconds() << " ns \n"; in run_perf_in_range()
67 timer.start(); in run_perf_in_range()
69 timer.stop(); in run_perf_in_range()
72 static_cast<double>(timer.nanoseconds()) / N / rounds; in run_perf_in_range()
74 log << " Total time : " << timer.nanoseconds() << " ns \n"; in run_perf_in_range()
53 Timer timer; run_perf_in_range() local
/llvm-project/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/libc/src/time/
H A Dgmtime.cpp16 LLVM_LIBC_FUNCTION(struct tm *, gmtime, (const time_t *timer)) {
18 return time_utils::gmtime_internal(timer, &tm_out);
H A Dgmtime_r.cpp17 (const time_t *timer, struct tm *result)) {
18 return time_utils::gmtime_internal(timer, result);
H A Dtime_utils.h79 LIBC_INLINE struct tm *gmtime_internal(const time_t *timer, struct tm *result) {
80 int64_t seconds = *timer;
142 gmtime_internal(const time_t * timer,struct tm * result) gmtime_internal() argument
H A Dgmtime.h18 struct tm *gmtime(const time_t *timer);
H A Dgmtime_r.h18 struct tm *gmtime_r(const time_t *timer, struct tm *result);
/llvm-project/clang/test/Analysis/
H A Dqt_malloc.cpp23 void singleShot(QTimer *timer) { in singleShot() argument
24 timer->singleShotImpl(0, (Qt::TimerType)0, nullptr, in singleShot()
/llvm-project/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.h46 * \brief flags to describe the statistic (timer or counter)
127 * \details A timer collects multiple samples of some count in each thread and
131 * hence the name "timer". (But can be any value, so we use this for "number of
245 // KMP_icv_copy -- start/stop timer for any ICV copying
294 * \details Explicit timers are ones where we need to allocate a timer itself
297 * allocate the timer itself on the stack, and use the destructor to notice
299 * same as that of a timer above.
487 // Where we need explicitly to start and end the timer, this version can be used
529 void init(explicitTimer timer);
530 void exchange(explicitTimer timer);
542 blockPartitionedTimer(partitionedTimers * pt,explicitTimer timer) blockPartitionedTimer() argument
[all...]
H A Dkmp_stats_timing.h61 #error Must have high resolution timer defined
/llvm-project/third-party/benchmark/src/
H A Dbenchmark_runner.cc127 internal::ThreadTimer timer( in RunInThread() local
133 b->Run(iters, thread_id, &timer, manager, perf_counters_measurement); in RunInThread()
140 results.cpu_time_used += timer.cpu_time_used(); in RunInThread()
141 results.real_time_used += timer.real_time_used(); in RunInThread()
142 results.manual_time_used += timer.manual_time_used(); in RunInThread()
H A Dbenchmark_api_internal.cc93 IterationCount iters, int thread_id, internal::ThreadTimer* timer, in Run() argument
96 State st(name_.function_name, iters, args_, thread_id, threads_, timer, in Run()
H A Dbenchmark_api_internal.h45 State Run(IterationCount iters, int thread_id, internal::ThreadTimer* timer,
/llvm-project/mlir/lib/Support/
H A DTiming.cpp377 std::function<void(TimerImpl *)> addTimer = [&](TimerImpl *timer) { in printAsList() argument
378 mergedTimers[timer->name] += timer->getTimeRecord(); in printAsList()
379 for (auto &children : timer->children) in printAsList()
/llvm-project/clang/test/Analysis/Inputs/
H A Dstd-c-library-functions-POSIX.h177 struct tm *localtime_r(const time_t *restrict timer, struct tm *restrict result);
180 struct tm *gmtime_r(const time_t *restrict timer, struct tm *restrict result);
/llvm-project/third-party/benchmark/docs/
H A Dperf_counters.md19 handled at the boundaries where timer collection is also handled.

12