summaryrefslogtreecommitdiffstats
path: root/converter/source/cTimer.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-04 21:13:10 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-04 21:13:10 +0100
commitc10ba99d155ec0f1b0b735d3651d3b78304c6b82 (patch)
treed697ccc211edf74c7dbc88f5c8bc02551b0290c2 /converter/source/cTimer.cpp
parentUpdated denotch map converter. Compiled with zlib that MCServr uses to remove the lag spike problem caused when reading map files using a different compression. Remade makefile and cleaned up code considerably. (diff)
downloadcuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.gz
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.bz2
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.lz
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.xz
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.zst
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.zip
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;
+}
+