This should work:
-timer on #
bunch of commands
-timer off #
-timer list #
where # is a number (which means you can have multiple timers going).
The off command stops that timer. And -list- will list the number of
seconds the command(s) took to run.
HTH
Sam
On Tue, 22 May 2007 [email protected] wrote:
> Hi there,
>
> How can I keep track of computation time within stata do files? Matlab has
> a built-in tic and toc stop-watch, doesn't stata?
>
> I have found a reference to the etime stata module by Dan Blanchette
> --http://econpapers.repec.org/software/bocbocode/s435504.htm -- is that the
> way to go?
>
> many thanks,
>
> Patrick.
> [email protected]
>
> *
> * 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/
>
*
* 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/