summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-07-05 10:55:04 +0300
committerTor Lillqvist <tml@collabora.com>2021-07-05 10:41:55 +0200
commitbcaf8b746ab4a5f8fa08217b1081fdad4532425e (patch)
tree4e3154caf3897efcbc4b2f91d7ada214308b892f
parent21b5364ab01f0ceb9197572ff8f50d8a8cea64e1 (diff)
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>
-rw-r--r--include/comphelper/profilezone.hxx5
1 files changed, 1 insertions, 4 deletions
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++;
}