From 161070bc1b2b9c818c5f42999651dff1b54b682b Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 7 Oct 2024 07:16:42 +0200 Subject: [PATCH] move to setFixedTime --- docs/src/api/class-clock.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/api/class-clock.md b/docs/src/api/class-clock.md index 902581764e..38ca329769 100644 --- a/docs/src/api/class-clock.md +++ b/docs/src/api/class-clock.md @@ -193,6 +193,8 @@ Resumes timers. Once this method is called, time resumes flowing, timers are fir Makes `Date.now` and `new Date()` return fixed fake time at all times, keeps all the timers running. +Use this method for simple scenarios where you only need to test with a predefined time. For more advanced scenarios, use [`method: Clock.install`] instead. Read docs on [clock emulation](../clock.md) to learn more. + **Usage** ```js @@ -251,8 +253,6 @@ Time to be set. Sets system time, but does not trigger any timers. Use this to test how the web page reacts to a time shift, for example switching from summer to winter time, or changing time zones. -Use this method for simple scenarios where you only need to test with a predefined time. For more advanced scenarios, use [`method: Clock.install`] instead. Read docs on [clock emulation](../clock.md) to learn more. - **Usage** ```js