try to estimate required loops better
two calls to timer and a noop f()