diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-20 11:31:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 11:31:16 +0100 |
commit | a8faa5504279f867adb6f50f768d3cf00594dc4f (patch) | |
tree | f4751774263c4b2dc184044436539274ce3504a1 /core/bind/core_bind.cpp | |
parent | b3f6e54cc61086fc3a3d2af170a86ea6a6eebf73 (diff) | |
parent | 84d060c768c10145374d48ebd2b3f00430c73638 (diff) | |
download | redot-engine-a8faa5504279f867adb6f50f768d3cf00594dc4f.tar.gz |
Merge pull request #24485 from volzhs/system-time-ms
Added OS.get_system_time_msecs()
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r-- | core/bind/core_bind.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index 8641af84d9..6f4561d8e6 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -827,6 +827,10 @@ uint64_t _OS::get_system_time_secs() const { return OS::get_singleton()->get_system_time_secs(); } +uint64_t _OS::get_system_time_msecs() const { + return OS::get_singleton()->get_system_time_msecs(); +} + void _OS::delay_usec(uint32_t p_usec) const { OS::get_singleton()->delay_usec(p_usec); @@ -1182,6 +1186,7 @@ void _OS::_bind_methods() { ClassDB::bind_method(D_METHOD("get_datetime_from_unix_time", "unix_time_val"), &_OS::get_datetime_from_unix_time); ClassDB::bind_method(D_METHOD("get_unix_time_from_datetime", "datetime"), &_OS::get_unix_time_from_datetime); ClassDB::bind_method(D_METHOD("get_system_time_secs"), &_OS::get_system_time_secs); + ClassDB::bind_method(D_METHOD("get_system_time_msecs"), &_OS::get_system_time_msecs); ClassDB::bind_method(D_METHOD("set_icon", "icon"), &_OS::set_icon); |