You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Remove OS.get_system_time_secs/get_system_time_msecs and change OS.get_unix_time return type to double
This commit is contained in:
@@ -498,18 +498,10 @@ Dictionary _OS::get_time_zone_info() const {
|
||||
return infod;
|
||||
}
|
||||
|
||||
uint64_t _OS::get_unix_time() const {
|
||||
double _OS::get_unix_time() const {
|
||||
return OS::get_singleton()->get_unix_time();
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
@@ -729,8 +721,6 @@ void _OS::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_unix_time"), &_OS::get_unix_time);
|
||||
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("get_exit_code"), &_OS::get_exit_code);
|
||||
ClassDB::bind_method(D_METHOD("set_exit_code", "code"), &_OS::set_exit_code);
|
||||
|
||||
Reference in New Issue
Block a user