[#BloombergLP-balb-PerformanceMonitor-setCollectionInterval]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PerformanceMonitor.adoc[PerformanceMonitor]::setCollectionInterval
:relfileprefix: ../../../
:mrdocs:

Set the specified time `interval`, in seconds, after which statistics for each registered pid are automatically collected&period; The behavior is undefined unless a scheduler was supplied at the construction of this performance monitor&period; A non&hyphen;positive `interval` value indicates that performance statistics should not be automatically collected&hyphen;&hyphen;in this case the user is responsible for manually calling the `collect` function&period;

== Synopsis

Declared in `&lt;balb&lowbar;performancemonitor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setCollectionInterval(double interval);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
