[Webkit-unassigned] [Bug 255033] Web Inspector: Console: timestamps are always wrong

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 14 11:01:01 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255033

Jasmine <jasmine.mok at sony.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jasmine.mok at sony.com

--- Comment #2 from Jasmine <jasmine.mok at sony.com> ---
I was able to reproduce this bug on macOS. It does not reproduce on Windows.

It looks like there's an issue with how MonotonicTime::now() is implemented for OS(DARWIN): https://github.com/WebKit/WebKit/blob/main/Source/WTF/wtf/CurrentTime.cpp#L265-L266

At 6:41 PM I output the following:
mach_absolute_time(): 2410267093664
fromMachAbsoluteTime(mach_absolute_time()): Monotonic(100427.795617 sec)
MonotonicTime::now(): Monotonic(100427.795629 sec)
Seconds(MonotonicTime::now().secondsSinceEpoch()): 100427.795569 sec

Converting 100427.795617 seconds to a timestamp yielded 19:53:47.795

When I commented out the OS(DARWIN) implementation of MonotonicTime::now() and tested again at 6:46 PM I got the correct timestamp of 18:46:54.921

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230414/339699b5/attachment.htm>


More information about the webkit-unassigned mailing list