Stata friends,
Is there a simple way to see how much time has elapsed while a command in
the midst of a "for" loop is running?
Outside of a loop, I just "set rmsg on" and can see how long each command
takes.
But if I have, for example,
for num 1/10: preserve \ keep if age==X \ reshape [blah blah blah] \
save ageX.dta, replace \ restore;
and I want to know how long the reshaping took, I'm not sure how to find
out. "set rmsg on" only gives me the time for the entire loop.
I know about macros to display the time, but I'm not sure how to
manipulate them to calculate time elapsed.
Thanks so much,
Dave
------------------------------------------------------------------------
PhD student, Harvard Economics Department
Phone: (O) 617-495-5634, (H) 617 - 493 - 1536
Address: Currier Mail Center #554, Cambridge, MA 02138
------------------------------------------------------------------------
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/