std::chrono::operator<< (std::chrono::duration)
Min standard notice:
Header: <chrono>
Inserts a textual representation of d into os.
# Declarations
template<
class CharT,
class Traits,
class Rep,
class Period
> std::basic_ostream<CharT, Traits>&
operator<<( std::basic_ostream<CharT, Traits>& os,
const std::chrono::duration<Rep, Period>& d );
(since C++20)
# Return value
A reference to the stream, i.e., os.
# Example
#include <chrono>
#include <iostream>
using namespace std::chrono_literals;
int main()
{
constexpr auto duration = 123ms;
std::cout << duration << '\n';
}