From 563028f6dbaad33152a873ca68f4b619839a9589 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Fri, 4 Nov 2011 16:27:11 +0000 Subject: Changes to the denotch map converter. Now runs 20 times faster than before. Not done yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@55 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- converter/cTimer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 converter/cTimer.cpp (limited to 'converter/cTimer.cpp') 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; +} + -- cgit v1.2.3