Fixed clang-tidy warning
This commit is contained in:
parent
a8c4aef6bd
commit
0879dea444
@ -115,7 +115,8 @@ inline void pad6(size_t n, fmt::basic_memory_buffer<char, Buffer_Size> &dest)
|
|||||||
template<typename ToDuration>
|
template<typename ToDuration>
|
||||||
inline ToDuration time_fraction(const log_clock::time_point &tp)
|
inline ToDuration time_fraction(const log_clock::time_point &tp)
|
||||||
{
|
{
|
||||||
using namespace std::chrono;
|
using std::chrono::duration_cast;
|
||||||
|
using std::chrono::seconds;
|
||||||
auto duration = tp.time_since_epoch();
|
auto duration = tp.time_since_epoch();
|
||||||
auto secs = duration_cast<seconds>(duration);
|
auto secs = duration_cast<seconds>(duration);
|
||||||
return duration_cast<ToDuration>(duration) - duration_cast<ToDuration>(secs);
|
return duration_cast<ToDuration>(duration) - duration_cast<ToDuration>(secs);
|
||||||
|
Loading…
Reference in New Issue
Block a user