diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-09-03 17:45:52 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:39:31 +0100 |
commit | 145ba8e157f79db64203db9684af2e6ed33af075 (patch) | |
tree | ec524120eaf2dda746d662297483be51fe626367 /src/main.cpp | |
parent | 2017-08-29 (diff) | |
download | AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.gz AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.bz2 AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.lz AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.xz AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.zst AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9c38814..4130bf3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,17 +5,16 @@ #include "ThreadNetwork.hpp" const char *getTimeSinceProgramStart(void) { - static auto initialTime = std::chrono::steady_clock().now(); - auto now = std::chrono::steady_clock().now(); - std::chrono::duration<double> seconds = now - initialTime; - static char buffer[30]; - sprintf(buffer, "%.2f", seconds.count()); - return buffer; + static auto initialTime = std::chrono::steady_clock().now(); + auto now = std::chrono::steady_clock().now(); + std::chrono::duration<double> seconds = now - initialTime; + static char buffer[30]; + sprintf(buffer, "%.2f", seconds.count()); + return buffer; } INITIALIZE_EASYLOGGINGPP - #undef main int main(int argc, char** argv) { |