include/comphelper/profilezone.hxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 7ab86b835fbb244e50fc50d8bb4af08d58630fc0
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Mon Jul 5 10:55:04 2021 +0300
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Jul 19 11:18:20 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 <t...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118407
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118934
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/include/comphelper/profilezone.hxx 
b/include/comphelper/profilezone.hxx
index f771a618fb54..2a8bb9f3dba0 100644
--- a/include/comphelper/profilezone.hxx
+++ b/include/comphelper/profilezone.hxx
@@ -38,9 +38,7 @@ class COMPHELPER_DLLPUBLIC ProfileZone : public NamedEvent
     {
         if (s_bRecording || m_bConsole)
         {
-            TimeValue systemTime;
-            osl_getSystemTime( &systemTime );
-            m_nCreateTime = static_cast<long long>(systemTime.Seconds) * 
1000000 + systemTime.Nanosec/1000;
+            m_nCreateTime = getNow();
 
             m_nNesting = s_nNesting++;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to