MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

wait exactly x seconds please, need not be more than 2 seconds but must be accurate within say 50 milliseconds, your function must honestly output the amount of time it has actually waited and that will be tested against what it was supposed to do.

64 correct solutions
216 incorrect solutions

Last solution submitted on Apr 15, 2015

1 player likes this problem

1 Comment

Mark Taylor
on 11 Apr 2012

Currently the test for this problem demands accuracy to the nearest 1/10 millisecond. I see a number of solutions (including mine) resort to cheating to achieve this. I'm not sure whether it is currently possible to solve this problem without cheating.

3 Comments