Severe bug in tic, toc, and pause on MacBook Pro11,1

1 view (last 30 days)
I have some strange behavior and like to confirm if others see the same. On a Macbook Pro 11,1 I run R2014b
when i do
pause on
datestr(now)
tic
pause(2400.0)
toc
datestr(now)
I get reported that the time it took to execute this is about 40 minutes. I stopped this with a stopwatch and can confirm it actually does take that time. However, tic tic reports back 2400s which is incorrect. I assume that the pause command somehow depends on the same timer that tic toc uses and therefore cancels this issue out. However its not 40 minutes and pause and tactic do not return the right result.
Interestingly this issue does not occur if only 1800 seconds are measured. Thus the issue shows up only when a significant time is passed.
I assume this is a bug in matlab on the newer generations MacBook Pros? I have confirmed that on an older MacBook Pro running an earlier version of OS X this error does not occur with the same program.
Help in confirming this issue by others is much appreciated.
  1 Comment
Gregor von Laszewski
Gregor von Laszewski on 22 Jan 2015
correction the time it takes is 50 minutes. However tic tic reports 40 minutes
pause on
datestr(now)
tic
pause (2400.0)
toc
datestr(now)

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!