<div><div dir="auto">Just print out the time before and after the step you want and you will get the time difference!</div><br><div class="gmail_quote"><div>On Sun, 11 Mar 2018 at 08:02, Prashanth Bhalachandran <<a href="mailto:prashanth.bhalachandran@gmail.com">prashanth.bhalachandran@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="#954F72"><div class="m_-6591378850782746782WordSection1"><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif">Hello all, <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif">I am writing to inquire if there is any function that tracks the time taken by the different steps in an NCL program. Matlab and R have this functionality called the tic and toc (stopwatch timer). <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif">The main use of this is to debug which function/step is taking such a long time to complete and to see if I can improve its efficiency (computational). <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif">Any suggestions? <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif">Thank you, <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:16.0pt;font-family:"Bodoni MT",serif">Prashanth <u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Lam Hoang, PhD<br>Viet Nam National Center of Hydro-Meteorology Forecasting<br>National Hydro-Meteorological Services of Vietnam</div><div>8 Phao Dai Lang street, Lang Thuong, Dong Da, Ha Noi, Vietnam<br><span style="font-size:12.8px">Mob: +84 9 682 34 682 </span><br style="font-size:12.8px"><br></div><div>Associate Researcher,<br>School of Earth, Atmosphere and Environment <br>Monash University, VIC 3800<br>Email: <a href="mailto:lam.hoang@monash.edu" target="_blank">lam.hoang@monash.edu</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>