Avoid 64-bit divide when sampling timestamp
On some lower-end platforms, 64-bit integer division is emulated or is significantly slower than 32-bit integer division even if not emulated. When converting ns to us in TimeTicks::Now(), we don't need the range of a 64-bit integer because we are starting with a 32-bit integer and making it smaller. There is no need to convert it to 64-bits before the division. BUG=none Review URL: https://codereview.chromium.org/600013003 Cr-Commit-Position: refs/heads/master@{#297287}
Showing
Please register or sign in to comment