From 14303717dcddae43cdc55beb0685dae86f566fd8 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Sat, 25 Oct 2014 18:57:26 +0000
Subject: [PATCH] Fast, needs to be faster
---
src/utils.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/utils.c b/src/utils.c
index 8a65ba7..a883ad8 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -4,6 +4,11 @@
#include <string.h>
#include <math.h>
+float sec(clock_t clocks)
+{
+ return (float)clocks/CLOCKS_PER_SEC;
+}
+
void error(char *s)
{
fprintf(stderr, "Error: %s\n", s);
--
Gitblit v1.10.0