Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: AW: calculation execution time after running the model


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Jamie Fagg
Gesendet: Dienstag, 24. August 2010 12:55
An: [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index