Skip to content

Commit

Permalink
Add important note about OS.get_unixtime.
Browse files Browse the repository at this point in the history
Should NEVER be used for precise time computations since its return
values are not guaranteed to be monotonic.
  • Loading branch information
Faless committed Dec 13, 2020
1 parent dc589a6 commit 49741d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/OS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@
</return>
<description>
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).
</description>
</method>
<method name="get_unix_time_from_datetime" qualifiers="const">
Expand Down

0 comments on commit 49741d9

Please sign in to comment.