diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-04 19:55:20 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-19 08:41:36 +0900 |
commit | e5175246c809695dff2aff4b50f4ac5c0e6c2f46 (patch) | |
tree | 3a64146ef5427d3374085b79cc10e0782cdd91f8 /lib/logging.h | |
parent | bbfdedbc941e3eb53252ce7144fac787e64a6c2e (diff) | |
download | libquotient-e5175246c809695dff2aff4b50f4ac5c0e6c2f46.tar.gz libquotient-e5175246c809695dff2aff4b50f4ac5c0e6c2f46.zip |
Profiler logging fixes and improvements
Diffstat (limited to 'lib/logging.h')
-rw-r--r-- | lib/logging.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/logging.h b/lib/logging.h index 8dbfdf30..6c93ca79 100644 --- a/lib/logging.h +++ b/lib/logging.h @@ -65,6 +65,17 @@ namespace QMatrixClient { return qdm(debug_object); } + + inline qint64 profilerMinNsecs() + { + return + #ifdef PROFILER_LOG_MIN_MS + PROFILER_LOG_MIN_MS + #else + 200 + #endif + * 1000; + } } inline QDebug operator<< (QDebug debug_object, const QElapsedTimer& et) |