[#BloombergLP-balb-PerformanceMonitor-setCollectionInterval] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PerformanceMonitor.adoc[PerformanceMonitor]::setCollectionInterval :relfileprefix: ../../../ :mrdocs: Set the automatic statistics collection interval, in seconds. == Synopsis Declared in `<balb_performancemonitor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setCollectionInterval(double interval); ---- == Description Set the specified time `interval`, in seconds, after which statistics for each registered pid are automatically collected. The behavior is undefined unless a scheduler was supplied at the construction of this performance monitor. A non‐positive `interval` value indicates that performance statistics should not be automatically collected‐‐in this case the user is responsible for manually calling the `collect` function. == Parameters [cols="1,4"] |=== | Name| Description | *interval* | seconds between automatic collections; non‐positive disables automatic collection |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#