Go to the documentation of this file. 22 #include <glog/logging.h> 24 #ifndef FB_LOG_EVERY_MS 36 #define FB_LOG_EVERY_MS(severity, milli_interval) \ 37 for (decltype(milli_interval) FB_LEM_once = 1, \ 38 FB_LEM_interval = (milli_interval); \ 40 for (::std::chrono::milliseconds::rep FB_LEM_prev, \ 41 FB_LEM_now = FB_LEM_interval <= 0 \ 43 : ::std::chrono::duration_cast<::std::chrono::milliseconds>( \ 44 ::std::chrono::system_clock::now().time_since_epoch()) \ 47 for (static ::std::atomic<::std::chrono::milliseconds::rep> FB_LEM_hist; \ 50 if (FB_LEM_interval > 0 && \ 53 FB_LEM_hist.load(std::memory_order_acquire)) < \ 55 !FB_LEM_hist.compare_exchange_strong(FB_LEM_prev, FB_LEM_now))) { \