[Libreoffice-commits] core.git: include/comphelper
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jul 5 08:42:27 UTC 2021
include/comphelper/profilezone.hxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit bcaf8b746ab4a5f8fa08217b1081fdad4532425e
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Jul 5 10:55:04 2021 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Jul 5 10:41:55 2021 +0200
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 at collabora.com>
diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx
index 772a1b6f51be..b96b26baffc1 100644
--- a/include/comphelper/profilezone.hxx
+++ b/include/comphelper/profilezone.hxx
@@ -35,10 +35,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++;
}
More information about the Libreoffice-commits
mailing list