diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-04 21:13:10 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-04 21:13:10 +0100 |
commit | c10ba99d155ec0f1b0b735d3651d3b78304c6b82 (patch) | |
tree | d697ccc211edf74c7dbc88f5c8bc02551b0290c2 /converter/source/cTimer.cpp | |
parent | Updated 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) | |
download | cuberite-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.cpp | 9 |
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; +} + |