summaryrefslogtreecommitdiffstats
path: root/converter/timer.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-30 19:15:44 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-30 19:15:44 +0100
commit940d36d8a1521f171674e358dada3305e66d48da (patch)
tree0d98770a7faadd0b8b9bc470e6a7e6308a8a99b3 /converter/timer.cpp
parentChanged long to long long so it works fine on 32bit systems (diff)
downloadcuberite-940d36d8a1521f171674e358dada3305e66d48da.tar
cuberite-940d36d8a1521f171674e358dada3305e66d48da.tar.gz
cuberite-940d36d8a1521f171674e358dada3305e66d48da.tar.bz2
cuberite-940d36d8a1521f171674e358dada3305e66d48da.tar.lz
cuberite-940d36d8a1521f171674e358dada3305e66d48da.tar.xz
cuberite-940d36d8a1521f171674e358dada3305e66d48da.tar.zst
cuberite-940d36d8a1521f171674e358dada3305e66d48da.zip
Diffstat (limited to 'converter/timer.cpp')
-rw-r--r--converter/timer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/converter/timer.cpp b/converter/timer.cpp
new file mode 100644
index 000000000..f9f9aea3e
--- /dev/null
+++ b/converter/timer.cpp
@@ -0,0 +1,9 @@
+#include "timer.h"
+
+double diffclock(clock_t clock1,clock_t clock2)
+{
+ double diffticks=clock1-clock2;
+ double diffms=(diffticks*10)/CLOCKS_PER_SEC;
+ return diffms;
+}
+