rcu_audio/rcu-utils.cc
int pacing() {
  static uint64_t last = 0;
  uint64_t now = monotime();
  int rc = 0;

  if ((now - last) > 1000000) {
    last = now;
    rc = 1;
  }

  return rc;
}
/* Return 1 if at least one second has passed since the
 * last successful call to pacing(). */
Return 1 if at least one second has passed since the
last successful call to pacing().
Return 1 if at least one second has passed since the last successful call to pacing () .
int pacing() {
  static uint64_t last = 0;
  uint64_t now = monotime();
  int rc = 0;
  if ((now - last) > 1000000) {
    last = now;
    rc = 1;
  }
  return rc;
}
int pacing ( ) { static uint64_t last = 0 ; uint64_t now = monotime ( ) ; int rc = 0 ; if ( ( now - last ) > 1000000 ) { last = now ; rc = 1 ; } return rc ; }
Return 1 if at least one second has passed since the
 last successful call to pacing().
Return 1 if at least one second has passed since the last successful call to pacing () .