create distinct functions, add perf-cnt
counter/sec is calculated, dropped for first sample (diff_s==0)