Last active
January 4, 2018 09:07
-
-
Save tzuhsun/a30b9da494d339f16e29a1f8ea537c1b to your computer and use it in GitHub Desktop.
Revisions
-
tzuhsun revised this gist
Jan 4, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ // Reference // https://github.com/ErikDubbelboer/node-sleep/issues/24 #include <chrono> #include <thread> -
tzuhsun revised this gist
Jan 4, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ https://github.com/ErikDubbelboer/node-sleep/issues/24 #include <chrono> #include <thread> -
tzuhsun renamed this gist
Jan 4, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tzuhsun renamed this gist
Jan 4, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tzuhsun revised this gist
Jan 4, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ [https://github.com/ErikDubbelboer/node-sleep/issues/24](https://github.com/ErikDubbelboer/node-sleep/issues/24) #include <chrono> #include <thread> -
tzuhsun revised this gist
Jan 4, 2018 . No changes.There are no files selected for viewing
-
tzuhsun revised this gist
Jan 4, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ // https://github.com/ErikDubbelboer/node-sleep/issues/24 #include <chrono> #include <thread> -
tzuhsun created this gist
Jan 4, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #include <chrono> #include <thread> std::this_thread::sleep_for(std::chrono::nanoseconds(ssec)); /* signed integer of 64+ bits */ std::this_thread::sleep_for(std::chrono::microseconds(usec)); /* signed integer of 55+ bits */ std::this_thread::sleep_for(std::chrono::milliseconds(ms)); /* signed integer of 45+ bits */ std::this_thread::sleep_for(std::chrono::seconds(sec)); /* signed integer of 35+ bits */ std::this_thread::sleep_for(std::chrono::minutes(min)); /* signed integer of 29+ bits */ std::this_thread::sleep_for(std::chrono::hours(hrs)); /* signed integer of 23+ bits */