Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3979
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/79/3979/1
sal osl_getGlobalTimer: Don't confuse start and current time.
Change-Id: I575dd70d6b80d4f3279476037e509550cfa23fde
---
M sal/osl/unx/time.c
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sal/osl/unx/time.c b/sal/osl/unx/time.c
index 94a935e..227f502 100644
--- a/sal/osl/unx/time.c
+++ b/sal/osl/unx/time.c
@@ -298,8 +298,6 @@
sal_uInt32 nSeconds;
#if defined(MACOSX) || defined(IOS)
- startTime = mach_absolute_time();
-
double diff = (double)(mach_absolute_time() - startTime) * adjust_time_factor * 1000;
nSeconds = (sal_uInt32)diff;
#else
@@ -307,9 +305,9 @@
int res;
#if defined(USE_CLOCK_GETTIME)
- res = clock_gettime(CLOCK_REALTIME, &startTime);
+ res = clock_gettime(CLOCK_REALTIME, ¤tTime);
#else
- res = gettimeofday( &startTime, NULL );
+ res = gettimeofday( ¤tTime, NULL );
#endif
assert(res == 0);
--
To view, visit https://gerrit.libreoffice.org/3979
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I575dd70d6b80d4f3279476037e509550cfa23fde
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Mark Wielaard <mark@klomp.org>
Context
- [PATCH] sal osl_getGlobalTimer: Don't confuse start and current time... · Mark Wielaard (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.