[Webkit-unassigned] [Bug 233795] New: Use `Seconds` as the underlying value for `MonotonicTime`/`WallTime`/etc.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 2 18:12:49 PST 2021


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

            Bug ID: 233795
           Summary: Use `Seconds` as the underlying value for
                    `MonotonicTime`/`WallTime`/etc.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com

It's already the case that `MonotonicTime`/`WallTime`/etc. use seconds as the internal representation, so we should just use `Seconds` to make it easier to convert to/from these wrapper/POD-esque objects (e.g. we would be able to drop `fromRawSeconds` and instead have a compile-time guarantee that the developer knows that the underlying value represents seconds when creating a `MonotonicTime`/`WallTime`/etc.).

-- 
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/20211203/9dd1ed77/attachment.htm>


More information about the webkit-unassigned mailing list