diff options
| author | Rémi Verschelde | 2018-06-18 21:35:55 +0200 |
|---|---|---|
| committer | GitHub | 2018-06-18 21:35:55 +0200 |
| commit | 41b962fc9c5c4517a1665aa4b0f18d486ac49c6a (patch) | |
| tree | 6b257c5099b28e0164f265aae5b540d15c5911b4 /core/bind/core_bind.cpp | |
| parent | db913cb9b872dc86c297bac8b152bb5abceff1ed (diff) | |
| parent | 4705dc4f0003e0bed87e3672dd977b3decdbd8b9 (diff) | |
| download | godot-41b962fc9c5c4517a1665aa4b0f18d486ac49c6a.tar.gz godot-41b962fc9c5c4517a1665aa4b0f18d486ac49c6a.tar.zst godot-41b962fc9c5c4517a1665aa4b0f18d486ac49c6a.zip | |
Diffstat (limited to 'core/bind/core_bind.cpp')
| -rw-r--r-- | core/bind/core_bind.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index 372cff441..7a14e85f2 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -799,6 +799,11 @@ uint32_t _OS::get_ticks_msec() const { return OS::get_singleton()->get_ticks_msec(); } +uint64_t _OS::get_ticks_usec() const { + + return OS::get_singleton()->get_ticks_usec(); +} + uint32_t _OS::get_splash_tick_msec() const { return OS::get_singleton()->get_splash_tick_msec(); @@ -1131,6 +1136,7 @@ void _OS::_bind_methods() { ClassDB::bind_method(D_METHOD("delay_usec", "usec"), &_OS::delay_usec); ClassDB::bind_method(D_METHOD("delay_msec", "msec"), &_OS::delay_msec); ClassDB::bind_method(D_METHOD("get_ticks_msec"), &_OS::get_ticks_msec); + ClassDB::bind_method(D_METHOD("get_ticks_usec"), &_OS::get_ticks_usec); ClassDB::bind_method(D_METHOD("get_splash_tick_msec"), &_OS::get_splash_tick_msec); ClassDB::bind_method(D_METHOD("get_locale"), &_OS::get_locale); ClassDB::bind_method(D_METHOD("get_latin_keyboard_variant"), &_OS::get_latin_keyboard_variant); |
