% $Id: README.prtime,v 1.3 2005/03/25 13:32:29 billl Exp $
only tested under Linux/Unix
may also run under Mac OS X
unlikely to run under MSWin
to test
nrnivmodl prtime
nrngui time.hoc
// enter a simple procedure eg
proc aa () { local ii
for ii=1,1e6 cos(ii)+log(ii)+exp(-ii)
}
// and time it
time("aa()")
also provides:
now() // returns time in sec since 01/01/05
sleepfor(SEC) // sleeps for SEC secs
|