stopwatch timer
factored out dimMaxError