Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 34) sorted by relevance

12

/oneTBB/test/conformance/
H A Dconformance_tick_count.cpp40 CHECK_EQ((tick_f - tick_s).seconds(), 0);
48 while ((tick_s - tick_f).seconds() == 0) {
51 CHECK_GT((tick_s - tick_f).seconds(), 0);
61 sec = (oneapi::tbb::tick_count::now() - start).seconds(); in WaitForDuration()
87 CheckNear((i + j).seconds(), k.seconds());
88 CheckNear((k - j).seconds(), i.seconds());
89 CheckNear(((k - j) + (j - i)).seconds(), k.seconds() - i.seconds());
93 CheckNear(sum.seconds(), k.seconds());
95 CheckNear(sum.seconds(), j.seconds());
97 CheckNear(sum.seconds(), 0.0);
[all …]
/oneTBB/doc/main/tbb_userguide/
H A DTiming.rst19 can convert to seconds, as in the following example:
28 printf("work took %g seconds\n",(t1-t0).seconds());
36 be converted to seconds.
/oneTBB/examples/parallel_reduce/pi/
H A Dmain.cpp71 compute_time = (tbb::tick_count::now() - compute_start_time).seconds(); in main()
78 compute_time = (tbb::tick_count::now() - compute_start_time).seconds(); in main()
93 utility::report_elapsed_time((tbb::tick_count::now() - main_start_time).seconds()); in main()
/oneTBB/examples/getting_started/sub_string_finder/
H A Dsub_string_finder_extended.cpp123 std::cout << "Serial version ran in " << (serial_t1 - serial_t0).seconds() << " seconds" in main()
125 << "Parallel version ran in " << (parallel_t1 - parallel_t0).seconds() << " seconds" in main()
128 << (serial_t1 - serial_t0).seconds() / (parallel_t1 - parallel_t0).seconds() << "\n"; in main()
/oneTBB/test/tbb/
H A Dtest_tick_count.cpp57 while ((end_time - start_time).seconds() == 0) { in __anon7e030fbd0102()
61 CHECK_GT((end_time - start_time).seconds(), 0); in __anon7e030fbd0102()
H A Dtest_semaphore.cpp67 tottime[tid] += (t1 - t0).seconds(); in operator ()()
/oneTBB/examples/parallel_for_each/parallel_preorder/
H A Dmain.cpp82 std::cout << interval.seconds() << " seconds using " << p << " threads (" in main()
86 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - main_start).seconds()); in main()
/oneTBB/test/common/
H A Dcpu_usertime.h87 if ( (waittime_delta = (tbb::tick_count::now()-stamp).seconds()) > maximal_waittime ) {
97 while ( ((waittime_delta=(tbb::tick_count::now()-stamp).seconds()) < minimal_waittime)
/oneTBB/examples/parallel_reduce/primes/
H A Dmain.cpp105 << (iterationEndMark - iterationBeginMark).seconds() << " sec with "; in main()
114 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - mainBeginMark).seconds()); in main()
/oneTBB/examples/parallel_for/seismic/
H A Dmain.cpp117 ((oneapi::tbb::tick_count::now() - xwayParallelismStartTime).seconds()); in main()
131 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - mainStartTime).seconds()); in main()
/oneTBB/examples/parallel_for/polygon_overlay/
H A Dpover_video.cpp106 std::cout << "Serial overlay took " << (t1 - t0).seconds() * 1000 << " msec" in on_process()
108 gSerialTime = (t1 - t0).seconds() * 1000; in on_process()
H A Dpolyover.cpp174 double naiveParallelTime = (t1 - t0).seconds() * 1000; in NaiveParallelOverlay()
442 domainSplitParallelTime = (t1 - t0).seconds() * 1000; in SplitParallelOverlay()
569 domainSplitParallelTime = (t1 - t0).seconds() * 1000; in SplitParallelOverlayCV()
705 domainSplitParallelTime = (t1 - t0).seconds() * 1000; in SplitParallelOverlayETS()
/oneTBB/examples/parallel_for/game_of_life/
H A DEvolution.cpp65 double work_time = (t1 - t0).seconds(); in Run()
116 double real_work_time = (t1 - t0).seconds(); in Run()
/oneTBB/examples/graph/dining_philosophers/
H A Ddining_philosophers.cpp53 const std::chrono::seconds think_time(1);
54 const std::chrono::seconds eat_time(1);
320 << " threads have taken " << (t1 - t0).seconds() << "seconds" in main()
333 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - main_time).seconds()); in main()
/oneTBB/examples/concurrent_priority_queue/shortpath/
H A Dshortpath.cpp322 (t1 - t0).seconds(), in main()
330 (t1 - t0).seconds(), in main()
336 utility::report_elapsed_time((t1 - t0).seconds()); in main()
/oneTBB/examples/concurrent_hash_map/count_strings/
H A Dcount_strings.cpp124 "total = %d unique = %u time = %g\n", n, unsigned(table.size()), (t1 - t0).seconds()); in CountOccurrences()
292 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - mainStartTime).seconds()); in main()
/oneTBB/examples/parallel_pipeline/square/
H A Dsquare.cpp221 printf("time = %g\n", (t1 - t0).seconds()); in run_pipeline()
274 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - mainStartTime).seconds()); in main()
/oneTBB/examples/task_arena/fractal/
H A Dmain.cpp84 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - mainStartTime).seconds()); in main()
H A Dfractal.cpp174 printf(" %s fractal finished. Time: %g\n", num ? "Second" : "First", (t1 - t0).seconds()); in calc_fractal()
/oneTBB/examples/graph/som/
H A Dsom_graph.cpp494 double nSeconds = (t1 - t0).seconds(); in main()
572 (t1 - t0).seconds()); in main()
574 single_time = (t1 - t0).seconds(); in main()
576 printf(": speedup == %g\n", single_time / (t1 - t0).seconds()); in main()
/oneTBB/include/oneapi/tbb/
H A Dtick_count.h47 double seconds() const { in seconds() function
/oneTBB/examples/task_group/sudoku/
H A Dsudoku.cpp272 solve_time = (oneapi::tbb::tick_count::now() - t0).seconds(); in solve()
319 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - mainStartTime).seconds()); in main()
/oneTBB/examples/parallel_reduce/convex_hull/
H A Dconvex_hull.hpp170 return (end - start).seconds(); in time_diff()
/oneTBB/examples/common/utility/
H A Dutility.hpp540 inline void report_elapsed_time(double seconds) { in report_elapsed_time() argument
541 std::cout << "elapsed time : " << seconds << " seconds" in report_elapsed_time()
/oneTBB/examples/graph/binpack/
H A Dbinpack.cpp335 utility::report_elapsed_time((oneapi::tbb::tick_count::now() - start).seconds()); in main()

12