ORZ_PLUS_INLINE void stopTimer (TmrId _id) { DynShrLock lock(m_timers.mutex(_id, _id)); ITimer* tmr = m_timers.get(_id, _id, false); if (!tmr) { return; } tmr->stop(); }
void bench_mandelbrot_single_cpu_par( ITimer& timer, Extent& ext, thrust::host_vector<int>& h, const int max_iter, Rectangle r ) { timer.start(); mandelbrot_cpu_par(ext, thrust::raw_pointer_cast(&h[0]), max_iter, r); timer.stop(); cout << max_iter << ";" << timer.delta() << endl; }