
14 Aug
2011
14 Aug
'11
7:40 p.m.
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