Currently, the PerformanceTiming class has a bunch of methods that do the following:
* Obtain a double from another class, which represents a timestamp in seconds.
* Transform using MonotonicTimeToPseudoWallTime.
* Clamp this timestamp using the TimeClamper, for security purposes. This performs one division. Also, subtract the clamped timestamp corresponding to the timeOrigin of the object.
* Multiply the double by 1000 and convert to unsigned long long, which is the format expected by the IDLs.
Ideally we would use TimeTicks instead of double in much of these computations. TimeTicks seems to store the value in int64_t. Is the change from double to TimeTicks feasible?
Comment 1 by tdres...@chromium.org
, Jan 19 2018