cache sprintf of time in default formatter

This commit is contained in:
gabime
2014-03-04 00:08:30 +02:00
parent 344b3d2834
commit 2be33c19fc
4 changed files with 45 additions and 20 deletions

View File

@@ -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();
}