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 49741d9464
)
This commit is contained in:
parent
9a3cd08122
commit
53988c7de3
1 changed files with 1 additions and 0 deletions
|
@ -529,6 +529,7 @@
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the current UNIX epoch timestamp.
|
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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_unix_time_from_datetime" qualifiers="const">
|
<method name="get_unix_time_from_datetime" qualifiers="const">
|
||||||
|
|
Loading…
Reference in a new issue