aboutsummaryrefslogtreecommitdiff
path: root/lib/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/logging.h')
-rw-r--r--lib/logging.h11
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)