<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Yeah i want to internally check the timing of certain methods i have that get called during run time.
<div class=""><br class="">
</div>
<div class="">liking with root works and the timing is pretty accurate from both cases </div>
<div class="">
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(217, 209, 173); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">rivet-buildplugin RivetAnalysis.so
<a href="http://analysis.cc" class="">Analysis.cc</a> -lRecursiveTools $(root-config --cflags --libs)</span></div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(52, 189, 38); background-color: rgb(0, 0, 0);" class="">
<span style="color: rgb(217, 209, 173);" class="">finished: Time from root TStopwatch </span><span style="color: rgb(217, 209, 173);" class=""> </span></div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(217, 209, 173); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">CPU time (min) = 0.484667</span></div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(217, 209, 173); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Real time (min) = 0.487455</span></div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(52, 189, 38); background-color: rgb(0, 0, 0);" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(217, 209, 173); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Rivet run completed at 2016-06-28 17:31:56, time elapsed = 0:00:29</span></div>
</div>
<div class=""><br class="">
</div>
<div class="">Cheers</div>
<div class="">Raghav</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 28, 2016, at 5:25 PM, Andy Buckley <<a href="mailto:a.g.buckley@gmail.com" class="">a.g.buckley@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">On 28/06/16 16:18, Raghav Kunnawalkam Elayavalli wrote:<br class="">
<blockquote type="cite" class="">Hi Rivet experts,<br class="">
<br class="">
I would like to optimize an analysis of mine for which i need the help of something like the TStopwatch feature. I assume i can use that from root itself, pointing to the rootcxxflags during compilation, but i wanted to know if Rivet has something like that.
I cant find a timer class in the documentation. but in know its there since you printout the time elapsed.<br class="">
</blockquote>
<br class="">
I guess it's ok to link against ROOT like you say. With the usual caveats about accuracy of such timing tests.<br class="">
<br class="">
The timing that we write out is just in the script layer, using Python's datetime module. It gives overall timing rather than per-component. At a simpler level you could just run it through the "time" shell command, but I guess you want to do some internal
profiling? Maybe worth looking into valgrind, gprof, or perf for that.<br class="">
<br class="">
Andy<br class="">
<br class="">
-- <br class="">
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br class="">
Particle Physics Expt Group, University of Glasgow<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>