diff options
author | Brandon <brandon@bremaweb.com> | 2016-11-02 11:36:58 -0500 |
---|---|---|
committer | Auke Kok <sofar+github@foo-projects.org> | 2016-11-02 09:36:58 -0700 |
commit | bf315c05f17549d37d7b4c4bd7938df0b5b32c5a (patch) | |
tree | c04f306861d9cee09b0e108e46a6036763526e0c /src/server.h | |
parent | 7607b0ac2065a50a9b68b22909ab40738f2d08e8 (diff) | |
download | minetest-bf315c05f17549d37d7b4c4bd7938df0b5b32c5a.tar.gz minetest-bf315c05f17549d37d7b4c4bd7938df0b5b32c5a.tar.bz2 minetest-bf315c05f17549d37d7b4c4bd7938df0b5b32c5a.zip |
Add minetest.get_server_uptime() function to Lua API (#4702)
Add minetest.get_server_uptime() function to Lua API
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index 5fc2a9133..f8b3ec106 100644 --- a/src/server.h +++ b/src/server.h @@ -216,6 +216,7 @@ public: // Connection must be locked when called std::wstring getStatusString(); + inline double getUptime() const { return m_uptime.m_value; } // read shutdown state inline bool getShutdownRequested() const { return m_shutdown_requested; } |