.TH "std::literals::chrono_literals" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::literals::chrono_literals .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "template \fBconstexpr\fP \fBchrono::hours\fP \fBoperator''h\fP ()" .br .RI "Literal suffix for durations of type \fCstd::chrono::hours\fP " .ti -1c .RI "\fBconstexpr\fP \fBchrono::duration\fP< long double, \fBratio\fP< 3600, 1 > > \fBoperator''h\fP (long double \fB__hours\fP)" .br .RI "Literal suffix for durations representing non-integer hours\&. " .ti -1c .RI "template \fBconstexpr\fP \fBchrono::minutes\fP \fBoperator''min\fP ()" .br .RI "Literal suffix for durations of type \fCstd::chrono::minutes\fP " .ti -1c .RI "\fBconstexpr\fP \fBchrono::duration\fP< long double, \fBratio\fP< 60, 1 > > \fBoperator''min\fP (long double \fB__mins\fP)" .br .RI "Literal suffix for durations representing non-integer minutes\&. " .ti -1c .RI "template \fBconstexpr\fP \fBchrono::milliseconds\fP \fBoperator''ms\fP ()" .br .RI "Literal suffix for durations of type \fCstd::chrono::milliseconds\fP " .ti -1c .RI "\fBconstexpr\fP \fBchrono::duration\fP< long double, \fBmilli\fP > \fBoperator''ms\fP (long double \fB__msecs\fP)" .br .RI "Literal suffix for durations representing non-integer milliseconds\&. " .ti -1c .RI "template \fBconstexpr\fP \fBchrono::nanoseconds\fP \fBoperator''ns\fP ()" .br .RI "Literal suffix for durations of type \fCstd::chrono::nanoseconds\fP " .ti -1c .RI "\fBconstexpr\fP \fBchrono::duration\fP< long double, \fBnano\fP > \fBoperator''ns\fP (long double \fB__nsecs\fP)" .br .RI "Literal suffix for durations representing non-integer nanoseconds\&. " .ti -1c .RI "template \fBconstexpr\fP \fBchrono::seconds\fP \fBoperator''s\fP ()" .br .RI "Literal suffix for durations of type \fCstd::chrono::seconds\fP " .ti -1c .RI "\fBconstexpr\fP \fBchrono::duration\fP< long double > \fBoperator''s\fP (long double \fB__secs\fP)" .br .RI "Literal suffix for durations representing non-integer seconds\&. " .ti -1c .RI "template \fBconstexpr\fP \fBchrono::microseconds\fP \fBoperator''us\fP ()" .br .RI "Literal suffix for durations of type \fCstd::chrono::microseconds\fP " .ti -1c .RI "\fBconstexpr\fP \fBchrono::duration\fP< long double, \fBmicro\fP > \fBoperator''us\fP (long double \fB__usecs\fP)" .br .RI "Literal suffix for durations representing non-integer microseconds\&. " .in -1c .SH "Detailed Description" .PP ISO C++ 2014 namespace for suffixes for duration literals\&. .PP These suffixes can be used to create \fCchrono::duration\fP values with tick periods of hours, minutes, seconds, milliseconds, microseconds or nanoseconds\&. For example, \fCstd::chrono::seconds(5)\fP can be written as \fC5s\fP after making the suffix visible in the current scope\&. The suffixes can be made visible by a using-directive or using-declaration such as: .IP "\(bu" 2 \fCusing namespace std::chrono_literals;\fP .IP "\(bu" 2 \fCusing namespace std::literals;\fP .IP "\(bu" 2 \fCusing namespace std::chrono;\fP .IP "\(bu" 2 \fCusing namespace std;\fP .IP "\(bu" 2 \fCusing std::chrono_literals::operator''s;\fP .PP .PP The result of these suffixes on an integer literal is one of the standard typedefs such as \fCstd::chrono::hours\fP\&. The result on a floating-point literal is a duration type with the specified tick period and an unspecified floating-point representation, for example \fC1\&.5e2ms\fP might be equivalent to \fCchrono::duration(1\&.5e2)\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.