diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-15 23:57:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 23:57:16 +0200 |
commit | 4b5b60de85fd264c57ef2dd90d0281cd8b4c05e1 (patch) | |
tree | 6b27343a22a160951328cb3ee48467421b41f668 /core/os | |
parent | e606b510aed533638a00180b6c00f2231da15175 (diff) | |
parent | c6de3872f922256c9149f83067c9bef79566775b (diff) |
Merge pull request #39189 from touilleMan/issue-38925
Unify OS.get_system_time_* and OS.get_unix_time
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/os.cpp | 10 | ||||
-rw-r--r-- | core/os/os.h | 4 |
2 files changed, 2 insertions, 12 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index 56755bcf51..c842be333c 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -83,15 +83,7 @@ uint64_t OS::get_splash_tick_msec() const { return _msec_splash; } -uint64_t OS::get_unix_time() const { - return 0; -} - -uint64_t OS::get_system_time_secs() const { - return 0; -} - -uint64_t OS::get_system_time_msecs() const { +double OS::get_unix_time() const { return 0; } diff --git a/core/os/os.h b/core/os/os.h index 9ca034a01c..04e10518dc 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -209,9 +209,7 @@ public: virtual Time get_time(bool local = false) const = 0; virtual TimeZoneInfo get_time_zone_info() const = 0; virtual String get_iso_date_time(bool local = false) const; - virtual uint64_t get_unix_time() const; - virtual uint64_t get_system_time_secs() const; - virtual uint64_t get_system_time_msecs() const; + virtual double get_unix_time() const; virtual void delay_usec(uint32_t p_usec) const = 0; virtual uint64_t get_ticks_usec() const = 0; |