If you have an event loop, it might be acceptable to sample the counter once per iteration, but less than that it becomes too lossy.