aboutsummaryrefslogtreecommitdiff
path: root/textures/base/pack/gear_icon.png
diff options
context:
space:
mode:
authorLars Hofhansl <larsh@apache.org>2017-01-08 09:32:16 -0800
committerNer'zhul <nerzhul@users.noreply.github.com>2017-01-08 19:22:33 +0100
commit1fee649f1586c39510169f4dbc84b6c7aed12cfd (patch)
tree4725b0fe042b8e8f2e94bbb2d4c2b837c8a5aa97 /textures/base/pack/gear_icon.png
parent98e36d7d681abc508aa81b6f9df0c8c87c7cfe17 (diff)
downloadminetest-1fee649f1586c39510169f4dbc84b6c7aed12cfd.tar.gz
minetest-1fee649f1586c39510169f4dbc84b6c7aed12cfd.tar.bz2
minetest-1fee649f1586c39510169f4dbc84b6c7aed12cfd.zip
Minor: Fix indentation in serverenvironment.cpp
Diffstat (limited to 'textures/base/pack/gear_icon.png')
0 files changed, 0 insertions, 0 deletions
> u32 *result, TimePrecision prec) { m_name = name; m_result = result; m_running = true; m_precision = prec; m_time1 = getTime(prec); } u32 TimeTaker::stop(bool quiet) { if(m_running) { u32 time2 = getTime(m_precision); u32 dtime = time2 - m_time1; if(m_result != NULL) { (*m_result) += dtime; } else { if (!quiet) { static const char* const units[] = { "s" /* PRECISION_SECONDS */, "ms" /* PRECISION_MILLI */, "us" /* PRECISION_MICRO */, "ns" /* PRECISION_NANO */, }; infostream << m_name << " took " << dtime << units[m_precision] << std::endl; } } m_running = false; return dtime; } return 0; } u32 TimeTaker::getTimerTime() { u32 time2 = getTime(m_precision); u32 dtime = time2 - m_time1; return dtime; }