diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 18:11:55 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 21:31:11 +0700 |
commit | 325dca9f212f9fd44cd10a8180529970c7a08c72 (patch) | |
tree | e1cfaec078dfa49f4d51d05eef8a5b0967843a41 /src/Timer.cpp | |
parent | 10f5376de856ecead4e8bbf66f19157f36f7a382 (diff) | |
download | blackshades-1.2.0.tar.gz |
Remove trailing whitespaces and duplicated blank lines 1.2.0
Diffstat (limited to 'src/Timer.cpp')
-rw-r--r-- | src/Timer.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/Timer.cpp b/src/Timer.cpp index 80cc5f9..869c154 100644 --- a/src/Timer.cpp +++ b/src/Timer.cpp @@ -1,28 +1,26 @@ /**> HEADER FILES <**/ #include <string.h> -#include "Timer.h" +#include "Timer.h" #include "Support.h" - /********************> Timer <*****/ void TimerInit(timer* theTimer) { - UnsignedWide ms; + UnsignedWide ms; + + Microseconds(&ms); - Microseconds(&ms); - - memset(theTimer, 0, sizeof(timer)); + memset(theTimer, 0, sizeof(timer)); - theTimer->mm_timer_start = ms.lo; - theTimer->mm_timer_elapsed = theTimer->mm_timer_start; + theTimer->mm_timer_start = ms.lo; + theTimer->mm_timer_elapsed = theTimer->mm_timer_start; } float TimerGetTime(timer* theTimer) { UnsignedWide ms; - + Microseconds(&ms); - - + return( (float) (ms.lo - theTimer->mm_timer_start) * 1000.0f); } |