Logo

Programming-Idioms

History of Idiom 45 > diff from v4 to v5

Edit summary for version 5 by :

Version 4

2015-08-20, 10:49:56

Version 5

2015-08-20, 10:50:53

Idiom #45 Pause execution for 5 seconds

Sleep for 5 seconds in current thread, before proceeding with next instructions.

Idiom #45 Pause execution for 5 seconds

Sleep for 5 seconds in current thread, before proceeding with next instructions.

Imports
use std::thread::sleep_ms;
Code
sleep_ms(5000);