diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-07-05 10:55:04 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-07-05 21:51:37 +0200 |
commit | d0f4eb3af275707bf914c2bf57e194e48a94c7e7 (patch) | |
tree | 3c81c9b116ed2b8201d4ed42879d87f7f7a336c3 | |
parent | Avoid accumulating a huge number of Trace Events before calling the callback (diff) | |
download | core-d0f4eb3af275707bf914c2bf57e194e48a94c7e7.tar.gz core-d0f4eb3af275707bf914c2bf57e194e48a94c7e7.zip |
Simplification: Use getNow() here, too
Change-Id: I0a9dc8ef9897c7b9973b42f10bcf51db27e188cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118402
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118407
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r-- | include/comphelper/profilezone.hxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx index 36730e7f8af6..43c792e0fcf7 100644 --- a/include/comphelper/profilezone.hxx +++ b/include/comphelper/profilezone.hxx @@ -36,9 +36,7 @@ class COMPHELPER_DLLPUBLIC ProfileZone : public NamedEvent { if (s_bRecording) { - TimeValue systemTime; - osl_getSystemTime( &systemTime ); - m_nCreateTime = static_cast<long long>(systemTime.Seconds) * 1000000 + systemTime.Nanosec/1000; + m_nCreateTime = getNow(); m_nNesting = s_nNesting++; } |