summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-23 17:11:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-23 17:11:54 +0300
commit801822c36bfc0c51739455d30b997a1b3e688870 (patch)
tree2823009d86bafa18fc8638335227661f620e6baa /src
parent54897c86bb137dcca72253a0f58899072b3f038d (diff)
downloadmanaverse-801822c36bfc0c51739455d30b997a1b3e688870.tar.gz
manaverse-801822c36bfc0c51739455d30b997a1b3e688870.tar.bz2
manaverse-801822c36bfc0c51739455d30b997a1b3e688870.tar.xz
manaverse-801822c36bfc0c51739455d30b997a1b3e688870.zip
Devide profiler time to 100.
Diffstat (limited to 'src')
-rw-r--r--src/utils/perfomance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/perfomance.cpp b/src/utils/perfomance.cpp
index 725022f8e..c73b271c0 100644
--- a/src/utils/perfomance.cpp
+++ b/src/utils/perfomance.cpp
@@ -39,8 +39,8 @@
//static const clockid_t clockType = CLOCK_PROCESS_CPUTIME_ID;
static const clockid_t clockType = CLOCK_MONOTONIC;
-#define timeData (static_cast<long long int>(time.tv_sec) * 1000000000LL \
- + static_cast<long long int>(time.tv_nsec))
+#define timeData ((static_cast<long long int>(time.tv_sec) * 1000000000LL \
+ + static_cast<long long int>(time.tv_nsec)) / 1000)
namespace Perfomance
{