summaryrefslogtreecommitdiffstats
path: root/converter/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'converter/timer.cpp')
-rw-r--r--converter/timer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/converter/timer.cpp b/converter/timer.cpp
new file mode 100644
index 000000000..f9f9aea3e
--- /dev/null
+++ b/converter/timer.cpp
@@ -0,0 +1,9 @@
+#include "timer.h"
+
+double diffclock(clock_t clock1,clock_t clock2)
+{
+ double diffticks=clock1-clock2;
+ double diffms=(diffticks*10)/CLOCKS_PER_SEC;
+ return diffms;
+}
+