From 53988c7de37fcaaab349db834543e94b3fd5f963 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 13 Dec 2020 13:56:45 +0100 Subject: [PATCH] Add important note about OS.get_unixtime. Should NEVER be used for precise time computations since its return values are not guaranteed to be monotonic. (cherry picked from commit 49741d9464e1f3ddda077dc08034d26d201be758) --- doc/classes/OS.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index fcd532ba3e5..f2eba23f93a 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -529,6 +529,7 @@ Returns the current UNIX epoch timestamp. + [b]Important:[/b] This is the system clock that the user can manully set. [b]Never use[/b] this method for precise time calculation since its results are also subject to automatic adjustments by the operating system. [b]Always use[/b] [method get_ticks_usec] or [method get_ticks_msec] for precise time calculation instead, since they are guaranteed to be monotonic (i.e. never decrease).