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

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

[Octave-bug-tracker] [bug #46845] usleep sleeps much too long on Mac OSX


From: anonymous
Subject: [Octave-bug-tracker] [bug #46845] usleep sleeps much too long on Mac OSX
Date: Fri, 08 Jan 2016 08:01:56 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36

Follow-up Comment #1, bug #46845 (project octave):

As I heard from a colleague, disabling AppNap should help. Because octave has
no .plist to set the boolean "NSAppSleepDisabled" to true, I disabled it
globally via 

defaults write NSGlobalDomain NSAppSleepDisabled -bool YES


Executing the same commands results in the following times (which are way more
accurate!):


>> tic; usleep (10), toc
Elapsed time is 6.38962e-05 seconds.
>> tic; usleep (10), toc
Elapsed time is 5.60284e-05 seconds.
>> tic; usleep (100), toc
Elapsed time is 0.000151873 seconds.
>> tic; usleep (100), toc
Elapsed time is 0.00014782 seconds.
>> tic; usleep (100), toc
Elapsed time is 0.000244856 seconds.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46845>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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