This is useful to measure the smoothness of animations and scrolling actions. part of #821 closes #2474
Fixes #2007