octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #55940] pause() takes too long if you call it


From: Rik
Subject: [Octave-bug-tracker] [bug #55940] pause() takes too long if you call it a bunch
Date: Tue, 19 Mar 2019 13:47:14 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #20, bug #55940 (project octave):

Is it possible that the delay is accurate when run in Octave, but the
reporting is incorrect?  In other words, is there something wrong with
tic/toc?

I put the following code in a file tst_delay.m


for i = 1:100
  pause(0.2);
  disp (i);
endfor


Then I ran


time run-octave -f tst_delay.m
0.385u 0.123s 0:20.58 2.4%      0+0k 20960+144io 116pf+0w


The third column is wall time which is about 20 seconds and is what I would
expect for 100, 0.2 second delays.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55940>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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