Bug 313675

Summary: Add GenericTimeMixin::approximate() template function.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Mark Lam
Reported 2026-04-29 12:39:46 PDT
This removes the need to manually add approximate conversion functions in each Time type e.g. approximateMonotonicTime() and approximateWallTime(). Every single one of these approximate conversion functions applies the exact same conversion algorithm. We can capture this in GenericTimeMixin::approximate(), and avoid all the duplication.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-29 12:40:23 PDT
Mark Lam
Comment 2 2026-04-29 12:49:19 PDT
EWS
Comment 3 2026-04-29 20:32:26 PDT
Committed 312332@main (23248aa32f59): <https://commits.webkit.org/312332@main> Reviewed commits have been landed. Closing PR #63915 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.