summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-08-09 17:48:48 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2017-08-22 10:51:35 +0200
commit168782a6e48fad98355a72e557402e66f7aa075d (patch)
tree11fac800968b859ba78d4d010177d570272f0f63 /tools
parent3b9a535ee41e85fd30381432b245252d1e97b8f9 (diff)
Remove 500ns offset from GetSystemTicks()
This doesn't make any sense. The orignal idea might have been to somehow be in the middle of 1ms, for whatever reason. And it completely breaks, if we want to sleep 0ms. Change-Id: I525b70c016876a96aa17edefe8c076b122ee2527
Diffstat (limited to 'tools')
-rw-r--r--tools/source/datetime/ttime.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx
index 2c0ebe4a1b53..83812f72171a 100644
--- a/tools/source/datetime/ttime.cxx
+++ b/tools/source/datetime/ttime.cxx
@@ -433,7 +433,7 @@ sal_uInt64 tools::Time::GetSystemTicks()
SAL_WARN("tools.datetime", "gettimeofday failed: " << e);
}
return static_cast<sal_uInt64>(tv.tv_sec) * 1000
- + (static_cast<sal_uInt64>(tv.tv_usec) + 500) / 1000;
+ + static_cast<sal_uInt64>(tv.tv_usec) / 1000;
#endif
}