diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-01-26 17:13:19 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-01-26 17:13:19 +0200 |
commit | bd100c5483eb77a27eeac4e476c81a1bf6afc710 (patch) | |
tree | 55de3858e460f349fbcad7f6a87d348c6fabfb5c /src/utility.cpp | |
parent | adb7f248da9e4ec9350d1a05d50213ff3d3908d6 (diff) | |
download | minetest-bd100c5483eb77a27eeac4e476c81a1bf6afc710.tar.gz minetest-bd100c5483eb77a27eeac4e476c81a1bf6afc710.tar.bz2 minetest-bd100c5483eb77a27eeac4e476c81a1bf6afc710.zip |
backing up some stuff
Diffstat (limited to 'src/utility.cpp')
-rw-r--r-- | src/utility.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utility.cpp b/src/utility.cpp index 65615f9c9..8b2b78b44 100644 --- a/src/utility.cpp +++ b/src/utility.cpp @@ -54,6 +54,13 @@ u32 TimeTaker::stop(bool quiet) return 0; } +u32 TimeTaker::getTime() +{ + u32 time2 = getTimeMs(); + u32 dtime = time2 - m_time1; + return dtime; +} + const v3s16 g_26dirs[26] = { // +right, +top, +back |