aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/menu/icon.png
diff options
context:
space:
mode:
authorhecks <42101236+hecktest@users.noreply.github.com>2021-07-21 22:07:13 +0200
committerGitHub <noreply@github.com>2021-07-21 22:07:13 +0200
commit850293bae6013fe020c454541d61af2c816b3204 (patch)
tree0796ab663e93766f738aa0c722cef4665b444d60 /games/devtest/menu/icon.png
parent6caed7073c5b50b5502edcb10f072adc3d59f84b (diff)
downloadminetest-850293bae6013fe020c454541d61af2c816b3204.tar.gz
minetest-850293bae6013fe020c454541d61af2c816b3204.tar.bz2
minetest-850293bae6013fe020c454541d61af2c816b3204.zip
Remove unused header includes
Diffstat (limited to 'games/devtest/menu/icon.png')
0 files changed, 0 insertions, 0 deletions
4 *result, TimePrecision prec) { m_name = name; m_result = result; m_precision = prec; m_time1 = porting::getTime(prec); } u64 TimeTaker::stop(bool quiet) { if (m_running) { u64 dtime = porting::getTime(m_precision) - m_time1; if (m_result != nullptr) { (*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; } u64 TimeTaker::getTimerTime() { return porting::getTime(m_precision) - m_time1; }