Page MenuHomePhabricator

Use phutil_microseconds_since(...) to simplify some timing arithmetic
ClosedPublic

Authored by epriestley on Nov 8 2018, 3:33 PM.
Tags
None
Referenced Files
F15581337: D19797.id47271.diff
Wed, May 7, 10:43 AM
F15578606: D19797.diff
Tue, May 6, 7:55 PM
F15561908: D19797.id47275.diff
Tue, Apr 29, 11:11 PM
F15561511: D19797.id47275.diff
Tue, Apr 29, 8:16 PM
F15558844: D19797.id47271.diff
Tue, Apr 29, 5:45 AM
F15551406: D19797.id.diff
Sun, Apr 27, 4:48 PM
F15547628: D19797.diff
Sat, Apr 26, 7:53 PM
F15505974: D19797.id.diff
Tue, Apr 15, 7:27 AM
Subscribers
None

Details

Summary

Depends on D19796. Simplify some timing code by using phutil_microseconds_since() instead of duplicate casting and arithmetic.

Test Plan

Grepped for 1000000 to find these. Pulled, pushed, made a conduit call. This isn't exhaustive but it should be hard for these to break in a bad way since they're all just diagnostic.

Diff Detail

Repository
rP Phabricator
Branch
rlog1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21119
Build 28711: Run Core Tests
Build 28710: arc lint + arc unit

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 8 2018, 3:34 PM
Harbormaster failed remote builds in B21119: Diff 47271!
epriestley retitled this revision from Use phutil_microseconds_since(...) to simplify some to Use phutil_microseconds_since(...) to simplify some timing arithmetic.

Tests failed since we don't have phutil_microseconds_since() in master yet (until D19796).

Grepped for 1000000 to find these.

So we only found the callsites that do have the correct number of zeroes 😢

This revision is now accepted and ready to land.Nov 8 2018, 8:21 PM

hahaha

grep 10000 | grep -v 1000000 doesn't seem to turn up anything suspicious so I suspect we're okay.

This revision was automatically updated to reflect the committed changes.