[#BloombergLP-bslmt-ChronoUtil-isMatchingClock-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ChronoUtil.adoc[ChronoUtil]::isMatchingClock :relfileprefix: ../../../ :mrdocs: Return whether `CLOCK` matches the specified `clockType`. == Synopsis Declared in `<bslmt_chronoutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class CLOCK> static bool isMatchingClock(xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType); ---- == Description Return `true` if the specified (template parameter) type `CLOCK` matches the specified `clockType`, and `false` otherwise. == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/ChronoUtil/isMatchingClock-03.adoc[`isMatchingClock<steady_clock>`] | Return whether `steady_clock` matches the specified `clockType`. | xref:BloombergLP/bslmt/ChronoUtil/isMatchingClock-0c.adoc[`isMatchingClock<system_clock>`] | Return whether `system_clock` matches the specified `clockType`. |=== == Return Value `true` if `CLOCK` matches `clockType`, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *clockType* | system clock type to compare against `CLOCK` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#