RESOLVED FIXED313675
Add GenericTimeMixin::approximate() template function.
https://bugs.webkit.org/show_bug.cgi?id=313675
Summary Add GenericTimeMixin::approximate() template function.
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.