Hello, I'd like to insert a "wait" function in my code. The reason is that I output timestamped files and I want to ensure that at least 1 second separes 2 files to avoid overwriting the previous file. Thanks, Marc Mamin
"Marc Mamin" <M.Mamin at intershop.de> writes:> Hello, > > I'd like to insert a "wait" function in my code. > > The reason is that I output timestamped files and I want to ensure that at least 1 second separes 2 files to avoid overwriting the previous file.Sys.sleep(1) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
On Wed, 20 Oct 2004, Marc Mamin wrote:> I'd like to insert a "wait" function in my code. > > The reason is that I output timestamped files and I want to ensure that > at least 1 second separes 2 files to avoid overwriting the previous > file.?Sys.sleep (The Unix equivalent command and system call are both called `sleep'.) -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595