mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
AK: Rename Time to Duration
That's what this class really is; in fact that's what the first line of the comment says it is. This commit does not rename the main files, since those will contain other time-related classes in a little bit.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
82ddc813d5
commit
213025f210
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/213025f210 Pull-request: https://github.com/SerenityOS/serenity/pull/17842 Reviewed-by: https://github.com/me-minus Reviewed-by: https://github.com/timschumi
@@ -55,7 +55,7 @@ DOMHighResTimeStamp coarsened_shared_current_time(bool cross_origin_isolated_cap
|
||||
DOMHighResTimeStamp unsafe_shared_current_time()
|
||||
{
|
||||
// The unsafe shared current time must return the current value of the shared monotonic clock.
|
||||
return Time::now_monotonic().to_nanoseconds() / 1e6;
|
||||
return Duration::now_monotonic().to_nanoseconds() / 1e6;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user