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

Issue 2871573009: Use clock_gettime instead of base::TimeTicks::Now() in QUIC (Closed)

Created:
3 years, 7 months ago by Ryan Hamilton
Modified:
3 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org, kapishnikov
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use clock_gettime instead of base::TimeTicks::Now() in QUIC Review-Url: https://codereview.chromium.org/2871573009 Cr-Commit-Position: refs/heads/master@{#471434} Committed: https://chromium.googlesource.com/chromium/src/+/ac0ea495b772c2b91ff94427b5a1cb6646cc4daf

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 3

Patch Set 3 : iOS 10 #

Total comments: 6

Patch Set 4 : fix #

Total comments: 2

Patch Set 5 : Fallback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M net/quic/core/quic_time.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M net/quic/platform/api/quic_clock.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M net/quic/platform/impl/quic_chromium_clock.cc View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download
M net/quic/platform/impl/quic_chromium_clock_test.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (25 generated)
Ryan Hamilton
ianswett: FYI zhongyi: PTAL
3 years, 7 months ago (2017-05-09 22:59:00 UTC) #3
Zhongyi Shi
Generally looks good to me, just one question. https://codereview.chromium.org/2871573009/diff/20001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/20001/net/quic/platform/impl/quic_chromium_clock.cc#newcode8 net/quic/platform/impl/quic_chromium_clock.cc:8: // ...
3 years, 7 months ago (2017-05-09 23:30:57 UTC) #5
ianswett
Looks good, minus the version check. https://codereview.chromium.org/2871573009/diff/20001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/20001/net/quic/platform/impl/quic_chromium_clock.cc#newcode8 net/quic/platform/impl/quic_chromium_clock.cc:8: // Use clock_gettime ...
3 years, 7 months ago (2017-05-10 00:44:56 UTC) #8
Ryan Hamilton
Thanks! https://codereview.chromium.org/2871573009/diff/20001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/20001/net/quic/platform/impl/quic_chromium_clock.cc#newcode8 net/quic/platform/impl/quic_chromium_clock.cc:8: // Use clock_gettime on iOS> On 2017/05/10 00:44:56, ...
3 years, 7 months ago (2017-05-10 03:06:04 UTC) #9
ianswett
lgtm Awesome, one possible nit. https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc#newcode8 net/quic/platform/impl/quic_chromium_clock.cc:8: #include <time.h> nit: Should ...
3 years, 7 months ago (2017-05-10 10:44:13 UTC) #16
ianswett
Is it worth considering changing base/time/time_mac.cc? https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc#newcode39 net/quic/platform/impl/quic_chromium_clock.cc:39: return CreateTimeFromMicroseconds(base::TimeTicks::Now().ToInternalValue()); As ...
3 years, 7 months ago (2017-05-10 11:40:36 UTC) #17
Ryan Hamilton
https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc#newcode8 net/quic/platform/impl/quic_chromium_clock.cc:8: #include <time.h> On 2017/05/10 10:44:13, ianswett wrote: > nit: ...
3 years, 7 months ago (2017-05-10 13:17:27 UTC) #18
kapishnikov
Sorry for the late input. https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc#newcode36 net/quic/platform/impl/quic_chromium_clock.cc:36: return CreateTimeFromMicroseconds(tp.tv_nsec / 1000); ...
3 years, 7 months ago (2017-05-10 15:25:38 UTC) #24
Ryan Hamilton
https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/80001/net/quic/platform/impl/quic_chromium_clock.cc#newcode36 net/quic/platform/impl/quic_chromium_clock.cc:36: return CreateTimeFromMicroseconds(tp.tv_nsec / 1000); On 2017/05/10 15:25:38, kapishnikov wrote: ...
3 years, 7 months ago (2017-05-10 17:05:56 UTC) #27
kapishnikov
An informal LGTM from me. As it was mentioned earlier, it would be great if ...
3 years, 7 months ago (2017-05-10 17:23:16 UTC) #28
Zhongyi Shi
lgtm!
3 years, 7 months ago (2017-05-10 17:39:14 UTC) #29
kapishnikov
https://codereview.chromium.org/2871573009/diff/100001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/100001/net/quic/platform/impl/quic_chromium_clock.cc#newcode35 net/quic/platform/impl/quic_chromium_clock.cc:35: clock_gettime(CLOCK_MONOTONIC, &tp); One extra comment. Maybe we should check ...
3 years, 7 months ago (2017-05-10 18:10:12 UTC) #30
Ryan Hamilton
https://codereview.chromium.org/2871573009/diff/100001/net/quic/platform/impl/quic_chromium_clock.cc File net/quic/platform/impl/quic_chromium_clock.cc (right): https://codereview.chromium.org/2871573009/diff/100001/net/quic/platform/impl/quic_chromium_clock.cc#newcode35 net/quic/platform/impl/quic_chromium_clock.cc:35: clock_gettime(CLOCK_MONOTONIC, &tp); On 2017/05/10 18:10:11, kapishnikov wrote: > One ...
3 years, 7 months ago (2017-05-10 19:07:47 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2871573009/120001
3 years, 7 months ago (2017-05-10 19:09:03 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/423191)
3 years, 7 months ago (2017-05-10 21:44:34 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2871573009/120001
3 years, 7 months ago (2017-05-12 17:40:56 UTC) #39
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 20:37:55 UTC) #42
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ac0ea495b772c2b91ff94427b5a1...

Powered by Google App Engine
This is Rietveld 408576698