help-octave
[Top][All Lists]
Advanced

[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: inor0627
Subject: Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds
Date: Thu, 17 Oct 2019 23:41:36 -0500 (CDT)

How about

for ii=1:100
t0=tic();
do
  t(ii)=toc(t0);
until (t>0.01)
end%for
t_mean=mean(t)

>> t_mean =    10.0051e-003  ?

Quite exact out of the box...



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]