aboutsummaryrefslogtreecommitdiff
path: root/src/timing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timing.c')
-rw-r--r--src/timing.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/timing.c b/src/timing.c
index 047d919..d7c5546 100644
--- a/src/timing.c
+++ b/src/timing.c
@@ -11,7 +11,9 @@ static const unsigned long MAX_TIME_SECONDS = 60;
/****************************************************************************
* Get the current time in milliseconds since midnight 1970-01-01 UTC.
****************************************************************************/
-void GetCurrentTime(TimeType *t) {
+void
+GetCurrentTime(TimeType *t)
+{
struct timeval val;
gettimeofday(&val, NULL);
t->seconds = val.tv_sec;
@@ -24,7 +26,9 @@ void GetCurrentTime(TimeType *t) {
* MAX_TIME_SECONDS will be returned.
* Note that the times must be normalized.
****************************************************************************/
-unsigned long GetTimeDifference(const TimeType *t1, const TimeType *t2) {
+unsigned long
+GetTimeDifference(const TimeType *t1, const TimeType *t2)
+{
unsigned long deltaSeconds;
int deltaMs;