[#BloombergLP-bslmt-ChronoUtil-timedWait-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ChronoUtil.adoc[ChronoUtil]::timedWait :relfileprefix: ../../../ :mrdocs: Block on the specified `primitive` object of the (template parameter) `PRIMITIVE` type by calling its `timedWait` method, passing the specified `argument` of the (template parameter) `ARG_TYPE` and a timeout calculated from the specified `absTime`. `absTime` is an _absolute_ time represented by a time point with respect to some epoch, which is determined by the clock associated with the time point. Return 0 on success, `PRIMITIVE::e_TIMED_OUT` if the `absTime` timeout expired, and other return values on error. The `timedWait` method of `primitive` is called only once if the clock type specified by the (template parameter) type `CLOCK` corresponds to the clock used by `primitive`, and may be called more than once otherwise. Note that error codes returned from this method, necessarily distinct from 0 and `PRIMITIVE::e_TIMED_OUT`, are defined by `PRIMITIVE`. == Synopsis Declared in `<bslmt_chronoutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class PRIMITIVE, class ARG_TYPE, class CLOCK, class DURATION> static int timedWait( PRIMITIVE* primitive, ARG_TYPE* argument, bsl::chrono::time_point<CLOCK, DURATION> const& absTime); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#