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