From c997bf2df128c8bfa962f498ad49c2b1fae148cd Mon Sep 17 00:00:00 2001 From: Michel Hoche-Mong Date: Tue, 18 Dec 2018 15:51:45 -0800 Subject: [PATCH] Speed up the cursor spinner in the spinner thread. --- splat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splat.cpp b/splat.cpp index 3748e80..c256a39 100644 --- a/splat.cpp +++ b/splat.cpp @@ -221,7 +221,7 @@ class SpinnerThread fprintf(stdout, "%c\b", cursor[pos++]); fflush(stdout); pos%=4; - sleep(1); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); } } void stop() {