diff options
Diffstat (limited to 'Source/Internal/stopwatch.cpp')
-rw-r--r-- | Source/Internal/stopwatch.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Internal/stopwatch.cpp b/Source/Internal/stopwatch.cpp index b65b707c..c6a01833 100644 --- a/Source/Internal/stopwatch.cpp +++ b/Source/Internal/stopwatch.cpp @@ -1,7 +1,7 @@ //----------------------------------------------------------------------------- // Name: stopwatch.cpp // Developer: Wolfire Games LLC -// Description: +// Description: // License: Read below //----------------------------------------------------------------------------- // @@ -28,10 +28,9 @@ #include <SDL.h> -void BusyWaitMilliseconds( uint32_t how_many ) -{ +void BusyWaitMilliseconds(uint32_t how_many) { Stopwatch watch; - while(watch.ReportMilliseconds()<how_many){ + while (watch.ReportMilliseconds() < how_many) { } } @@ -65,7 +64,7 @@ void PrecisionStopwatch::Start() { void PrecisionStopwatch::Stop(std::string text) { uint64_t time_elapsed = StopAndReportNanoseconds(); - LOGI << time_elapsed << " " << text << std::endl; + LOGI << time_elapsed << " " << text << std::endl; } uint64_t PrecisionStopwatch::StopAndReportNanoseconds() { |