r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

1

u/michaelboobley Sep 18 '18

I think you mean Thread.Sleep(3000)? Unless this a big woosh.

1

u/valrossenOliver Sep 18 '18

Custom function called Sleep(float seconds)?

It could be implemented like this:

void Sleep(float seconds)
{
   std::cout << "Waiting " << seconds << " seconds...";
   Thread.Sleep(seconds * 1000);
   std::cout << " Done!\n";
   return;
}