[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds
From: |
Ardid, Salva |
Subject: |
Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds |
Date: |
Wed, 16 Oct 2019 22:34:46 +0000 |
El dimecres, 16 d’octubre de 2019, a les 18:09:48 EDT, GoSim va escriure:
>> tic;toc
Elapsed time is 2.28882e-05 seconds.
>> tic;toc
Elapsed time is 2.40803e-05 seconds.
>> tic;toc
Elapsed time is 2.21729e-05 seconds.
>> tic;toc
Elapsed time is 2.40803e-05 seconds.
>> tic;toc
Elapsed time is 2.19345e-05 seconds.
>> tic;toc
Elapsed time is 2.19345e-05 seconds.
>> tic;toc
Elapsed time is 2.40803e-05 seconds.
>> tic;toc
Elapsed time is 8.82149e-06 seconds.
>> tic;toc
Elapsed time is 2.19345e-05 seconds.
>> tic;toc
Elapsed time is 2.31266e-05 seconds.
>> tic;toc
Elapsed time is 2.28882e-05 seconds.
>> tic;toc
Elapsed time is 2.40803e-05 seconds.
:-)
it's not tic toc
--
Sent from:
https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Foctave.1599824.n4.nabble.com%2FOctave-General-f1599825.html&data=02%7C01%7Csalva.ardid%40yale.edu%7C0723d1a538ae47c5d48608d75285a5e5%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637068606278435114&sdata=vydJ3uz53pUAYF2jpGYU3qDKFFWvqatbBXON2zT1sTU%3D&reserved=0
Note that executing tic/toc two times in a row gives interesting results:
>> t = tic; tic, toc, toc(t)
Elapsed time is 8.10623e-06 seconds.
Elapsed time is 0.000210047 seconds.
The outside tic toc (the one with sth executed inside) is about 1/5 of a ms
(~26 times the first tic/toc), which is similar to added value to 0.01 here:
>> tic, pause(0.01), toc
Elapsed time is 0.0102508 seconds.
So it seems part of it comes from pause and part of it is internal to octave
irrespective of pause
- pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, GoSim, 2019/10/16
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, Nicholas Jankowski, 2019/10/16
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, GoSim, 2019/10/16
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, Francesco Potortì, 2019/10/17
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, GoSim, 2019/10/17
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, inor0627, 2019/10/18
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, inor0627, 2019/10/18
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, Francesco Potortì, 2019/10/18
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, GoSim, 2019/10/18
- Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds, GoSim, 2019/10/18