frontend: pcnt: use gettimeofday