fix readme invalid cmake invocation, show ms in debug output

This commit is contained in:
Lion Kortlepel
2021-10-01 02:03:11 +02:00
parent 7f1d37a0e6
commit 87ecc3f9f6
2 changed files with 1 additions and 5 deletions

View File

@@ -14,7 +14,6 @@ std::string GetDate() {
auto local_tm = std::localtime(&tt);
char buf[30];
std::string date;
#if defined(DEBUG)
if (Application::Settings.DebugModeEnabled) {
std::strftime(buf, sizeof(buf), "[%d/%m/%y %T.", local_tm);
date += buf;
@@ -26,12 +25,9 @@ std::string GetDate() {
date += fracstr;
date += "] ";
} else {
#endif
std::strftime(buf, sizeof(buf), "[%d/%m/%y %T] ", local_tm);
date += buf;
#if defined(DEBUG)
}
#endif
return date;
}