diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-23 17:11:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-23 17:11:54 +0300 |
commit | 801822c36bfc0c51739455d30b997a1b3e688870 (patch) | |
tree | 2823009d86bafa18fc8638335227661f620e6baa /src/utils/perfomance.cpp | |
parent | 54897c86bb137dcca72253a0f58899072b3f038d (diff) | |
download | manaplus-801822c36bfc0c51739455d30b997a1b3e688870.tar.gz manaplus-801822c36bfc0c51739455d30b997a1b3e688870.tar.bz2 manaplus-801822c36bfc0c51739455d30b997a1b3e688870.tar.xz manaplus-801822c36bfc0c51739455d30b997a1b3e688870.zip |
Devide profiler time to 100.
Diffstat (limited to 'src/utils/perfomance.cpp')
-rw-r--r-- | src/utils/perfomance.cpp | 4 |
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 { |