Timed spinner based algorithm which can be used for efficient metrics calculations.