Issues a LOG(severity) no more often than every milliseconds. Example:
Synopsis
Declared in <folly/GLog.h>
#define FB_LOG_EVERY_MS(severity, milli_interval)
Description
FB_LOG_EVERY_MS(INFO, 10000) << "At least ten seconds passed" " since you last saw this.";
The implementation uses for statements to introduce variables in a nice way that doesn't mess surrounding statements. It is thread safe. Non‐positive intervals will always log.
Parameters
Name |
Description |
severity |
The log severity level (e.g. INFO, WARNING, ERROR). |
milli_interval |
The minimum interval, in milliseconds, between logs. |
Created with MrDocs