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