tail -f -n 0 /var/log/nginx/access.log | awk 'BEGIN { st=systime(); } { ++count ; ct=systime(); if (ct-st >= 1) { print count/1 ; count=0; st=ct } }' | tee rps.log
void input(double &a, double &b, double &c, double &d) {
cin >> a;
....
}
int main() {
double a,b,c,d;
input(a,b,c,d);
return 0;
}