mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-01 02:42:41 +08:00
Fixed example and inline
This commit is contained in:
parent
de6ddf4e2a
commit
05b68b8581
@ -117,7 +117,7 @@ inline void pad6(size_t n, fmt::basic_memory_buffer<char, Buffer_Size> &dest)
|
|||||||
// e.g.
|
// e.g.
|
||||||
// fraction<std::milliseconds>(tp) -> will return the millis part of the second
|
// fraction<std::milliseconds>(tp) -> will return the millis part of the second
|
||||||
template<typename ToDuration>
|
template<typename ToDuration>
|
||||||
ToDuration time_fraction(const log_clock::time_point &tp)
|
inline ToDuration time_fraction(const log_clock::time_point &tp)
|
||||||
{
|
{
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
auto duration = tp.time_since_epoch();
|
auto duration = tp.time_since_epoch();
|
||||||
|
Loading…
Reference in New Issue
Block a user