Skip to content

Commit

Permalink
Speed up the cursor spinner in the spinner thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Hoche-Mong committed Dec 18, 2018
1 parent bb01a34 commit c997bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c997bf2

Please sign in to comment.