^this post shows the exact example i wanted. yesterday i went to your link ...
actually tried your this_thread.sleep_for( N ) (used 3 in N) but couldn't make it work. didn't search further branches as a beginner (hope you don't mind). searched some ctime reference in this site, couldn't make sleep() work. i didn't go to cppreference.com because that seems too technical for a beginner.
at last i thank you for providing reference to one line solution - which i was looking for. (my previous code isn't a solution actually, rather its a question in disguise - so it caught the required attention. now you may remove your subscripts, i have not read them - believe it or not :)
I didn't go to cppreference.com because that seems too technical for a beginner.
Reference for programmers is what dictionary is for someone learning foreign language. It might looks intimidating ("What are those n, v or other leters near words?") but if you skip irrelevant information (like possible implementation) you will find it extremily useful. It provides complete answer to question "What that function do?"
Bonus: In C++14 following is possible — std::this_thread.sleep_for( 150ms );