13
jobylie
8y

While (time.now<time.alarm){
sleep 10;
clock.lookat;
brain.wonderwhythefuckicantsleepformorethan10minatatime;
}

Comments
  • 4
    Avoid busy waiting, make it asynchronous:

    ...
    Timer* wakeupCall = new Timer( 1496386800, &_wakeupCall);
    sleep();
    }

    void _wakeupCall()
    {
    _morningRoutine();
    }
  • 1
    I'd love to sleep in 10 min intervals, you could plan how long you're going to sleep
Add Comment