src/tcpkali_pacefier.h
static inline size_t
pacefier_allow(struct pacefier *p, double now) {
    double elapsed = now - p->previous_ts;
    ssize_t move_events = elapsed * p->events_per_second; /* Implicit rounding */
    if(move_events > 0)
        return move_events;
    else
        return 0;
}
/*
 * Get the number of events we can move now, since we've advanced our time
 * forward a little.
 */
Get the number of events we can move now, since we've advanced our time
forward a little.
Get the number of events we can move now since we ' ve advanced our time forward a little .
static inline size_t
pacefier_allow(struct pacefier *p, double now) {
    double elapsed = now - p->previous_ts;
    ssize_t move_events = elapsed * p->events_per_second; 
    if(move_events > 0)
        return move_events;
    else
        return 0;
}
static inline size_t pacefier_allow ( struct pacefier * p , double now ) { double elapsed = now - p -> previous_ts ; ssize_t move_events = elapsed * p -> events_per_second ; if ( move_events > 0 ) return move_events ; else return 0 ; }
Get the number of events we can move now, since we've advanced our time
 forward a little.
Get the number of events we can move now since we ' ve advanced our time forward a little .
/* Implicit rounding */