Boost logo

Boost Users :

Subject: [Boost-users] boost timer
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2011-08-14 15:40:43


Hello,

I would like to calculate the runtime of my algorithms. I have written a MPI based algorithms and must determine the duration of the algorithm on each CPU. I would like to show the really duration, which is based on Amdahls law, so I need a "exactly" timer. Can I use the Boost Timer / Boost MPI Timer to calculate the duration between start and end of my algorithm? On large datasets I think the timer is a good choice. Is the resolution of the timer object just enough for small amounts of data? I would like to do this:

timer t;
run_algorithm;
std::cout << t.elapsed << std::endl;

Is a timer object a good choice to determine runtime structure or do you a better structure?

Thanks

Phil


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net