Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Issue 2172483002: Use CLOCK_MONOTONIC_RAW for TimeTicks on Posix systems. (Closed)

Created:
4 years, 5 months ago by jameswest
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use CLOCK_MONOTONIC_RAW for TimeTicks on Posix systems. BUG=internal b/29618700

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M base/time/time_posix.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
jameswest
4 years, 5 months ago (2016-07-20 23:25:08 UTC) #3
miu
This seems fine, but there are a several spots throughout the code base where devs ...
4 years, 4 months ago (2016-07-27 00:28:28 UTC) #4
jameswest
4 years, 4 months ago (2016-07-27 23:25:52 UTC) #6
mdempsky
I don't recall any security-relevant concerns to CLOCK_MONOTONIC vs CLOCK_MONOTONIC_RAW. I think that sandbox test ...
4 years, 4 months ago (2016-07-27 23:40:46 UTC) #7
jameswest
I can add a check if CLOCK_MONOTONIC_RAW is defined and fall back to CLOCK_MONOTONIC if ...
4 years, 4 months ago (2016-07-28 00:30:36 UTC) #8
spang
On 2016/07/27 00:28:28, miu wrote: > This seems fine, but there are a several spots ...
4 years, 4 months ago (2016-07-28 00:41:04 UTC) #9
jameswest
> We can't use monotonic raw for event timestamps - the kernel doesn't support > ...
4 years, 4 months ago (2016-07-28 01:31:31 UTC) #10
miu
I initially liked the idea of moving TimeTicks over to CLOCK_MONOTONIC_RAW, since that's what we ...
4 years, 4 months ago (2016-07-30 22:40:23 UTC) #11
spang
4 years, 4 months ago (2016-08-02 15:20:33 UTC) #12
On 2016/07/30 22:40:23, miu wrote:
> I initially liked the idea of moving TimeTicks over to CLOCK_MONOTONIC_RAW,
> since that's what we do on Windows (QPC() is a constant-frequency high-res
> clock). However, now that we've heard back from other stakeholders, it's seems
> that we should not proceed with this change.

Thanks.

Another argument against is that CLOCK_MONOTONIC is exposed through the VDSO on
some architectures including x86 & arm64. No architectures optimize access to
CLOCK_MONOTONIC_RAW in this way. So another argument against is that it'd
regress performance.

>  
> I'll comment on the audio design on the other code review
> (https://codereview.chromium.org/2101303004/).

Powered by Google App Engine
This is Rietveld 408576698