Add format script which invokes clang-format on the C++ source code (#41)

On Windows machines, clang-format.exe must be in the PATH environment variable.
This commit is contained in:
Tyler Veness
2016-05-20 17:30:37 -07:00
committed by Peter Johnson
parent 68690643d2
commit e14e45da76
383 changed files with 13787 additions and 13198 deletions

View File

@@ -10,7 +10,7 @@
#include "Base.h"
#include "HAL/cpp/priority_mutex.h"
typedef void (*TimerInterruptHandler)(void *param);
typedef void (*TimerInterruptHandler)(void* param);
void Wait(double seconds);
double GetClock();
@@ -19,12 +19,10 @@ double GetTime();
/**
* Timer objects measure accumulated time in seconds.
* The timer object functions like a stopwatch. It can be started, stopped, and
* cleared. When the
* timer is running its value counts up in seconds. When stopped, the timer
* holds the current
* value. The implementation simply records the time when started and subtracts
* the current time
* whenever the value is requested.
* cleared. When the timer is running its value counts up in seconds. When
* stopped, the timer holds the current value. The implementation simply records
* the time when started and subtracts the current time whenever the value is
* requested.
*/
class Timer {
public: