diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-04 17:27:11 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-04 17:27:11 +0100 |
commit | 563028f6dbaad33152a873ca68f4b619839a9589 (patch) | |
tree | 37de244a7e14441b58f55ad904e502e51f2ab163 /converter/cTimer.cpp | |
parent | Added cRedstone to project file (diff) | |
download | cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.gz cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.bz2 cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.lz cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.xz cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.zst cuberite-563028f6dbaad33152a873ca68f4b619839a9589.zip |
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; +} + |