default format_time performance improvement

This commit is contained in:
gabime
2014-03-15 21:05:11 +02:00
parent 38670cef27
commit 9d9a955e94
4 changed files with 42 additions and 29 deletions

View File

@@ -27,7 +27,7 @@ public:
return _str;
}
void clear()
void reset_str()
{
_str.clear();
}
@@ -68,6 +68,10 @@ public:
{
return _dev.str_ref();
}
void reset_str()
{
_dev.reset_str();
}
private:
str_devicebuf _dev;

View File

@@ -42,9 +42,7 @@ public:
// The move ctor should only be called on start of logging line,
// where no logging happened yet for this line so no need to copy the string from the other
_oss(),
_level(other._level)
{
};
_level(other._level) {};
~line_logger()