CARB_LOG_EVERY_N_MS#
Defined in carb/logging/Log.h
-
CARB_LOG_EVERY_N_MS(level, intervalMs, fmtOrChannel, ...)#
Time-based throttled logging macro if the level is dynamic.
Prefer using CARB_LOG_VERBOSE_EVERY_N_MS, CARB_LOG_INFO_EVERY_N_MS, etc. if the level is static.
Note
This logs only once every N milliseconds by using
staticvariables to track the last log time.- Parameters:
level – The Log Levels
intervalMs – The minimum interval in milliseconds between log messages
fmtOrChannel – The printf format specifier string, or log channel declared with CARB_LOG_ADD_CHANNEL.
... – Optional arguments. If
fmtOrChannelspecifies a channel, the first argument must be the format string.