Adding _getClampedTime utility method.