[#BloombergLP-bsls-TimeUtil-getThreadTimers] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeUtil.adoc[TimeUtil]::getThreadTimers :relfileprefix: ../../../ :mrdocs: Load the current thread system and user CPU times in nanoseconds. == Synopsis Declared in `<bsls_timeutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void getThreadTimers( xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64]* systemTimer, xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64]* userTimer); ---- == Description Load into the specified `systemTimer` and `userTimer` the instantaneous values of platform‐dependent system timer and user timer for the current thread, in absolute nanoseconds referenced to an arbitrary but fixed origin. Load ‐1 into both timers on platforms where per‐thread CPU timers are unavailable or in case of a system call failure. Note that this method is thread‐safe only if `initialize` has been called before. == Parameters [cols="1,4"] |=== | Name| Description | *systemTimer* | receives the thread system time in nanoseconds | *userTimer* | receives the thread user time in nanoseconds |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#