mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
cache sprintf of time in default formatter
This commit is contained in:
@@ -15,7 +15,7 @@ public:
|
||||
_str = other._str;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
const std::string& str_ref() const {
|
||||
return _str;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
_dev = other._dev;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
const std::string& str_ref() const {
|
||||
return _dev.str_ref();
|
||||
}
|
||||
|
Reference in New Issue
Block a user