How Do You Derive Walltime From Timestamp Using Chrome's Debugger Protocol?
Solution 1:
According to source code in InspectorNetworkAgent.cpp:
wallTime
iscurrentTime()
(normal system time)timestamp
ismonotonicallyIncreasingTime()
On Windows it's based on the number of milliseconds that have elapsed since the system was started, and you can't get that info from an extension.
On POSIX systems (e.g. Linux)
clock_gettime
in CLOCK_MONOTONIC mode is used that represents monotonic time since some unspecified starting point.According to source code in time.h:
TimeTicks and ThreadTicks represent an abstract time that is most of the time incrementing, for use in measuring time durations. Internally, they are represented in microseconds. They can not be converted to a human-readable time, but are guaranteed not to decrease (unlike the Time class). Note that TimeTicks may "stand still" (e.g., if the computer is suspended), and ThreadTicks will "stand still" whenever the thread has been de-scheduled by the operating system.
Post a Comment for "How Do You Derive Walltime From Timestamp Using Chrome's Debugger Protocol?"