Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: calculation execution time after running the model


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: calculation execution time after running the model
Date   Tue, 24 Aug 2010 13:32:53 +0200

<> 


The good thing about -timer- is that you can have it collect the timings and
return them at the end of your do-file:


*************
timer clear

timer on 1
webuse epilepsy, clear
xtmepoisson seizures treat lbas  /* 
*/ lbas_trt lage visit || subject: visit
timer off 1

timer on 2
webuse towerlondon, clear
xtmelogit dtlm difficulty i.group  /* 
*/ || family: || subject:
timer off 2

qui timer list
di in r "First time: " r(t1) /* 
*/ _n "Second time: " r(t2)
timer clear
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Jamie Fagg
Gesendet: Dienstag, 24. August 2010 12:55
An: statalist@hsphsun2.harvard.edu
Betreff: st: calculation execution time after running the model

Dear statalisters,

How do you make a note of the execution time of a model in the log
file (i.e. is there something that can be specified in the do file?)
and can this be done after estimating a model? For example, I've just
run a model which I think took a long time over night, and I'd like to
find out exactly how long. More generally, I'd like to know how to set
the times so that I know. Searching 'execution time' in the archives
didn't seem to find the answers...

Thanks for your consideration,

Jamie
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index