polyfractal/athletic — pull request #23 by Matthimatiker (2014-02-09 13:57:30+00:00)
Title: Avoid division by zero in MethodResults

This change avoids a division by zero in the ``MethodResults`` class.

The problem occurs when the duration of an event is zero, which might be the case if the iterations run really fast and/or the clock is not precise enough.
I noticed this behavior sometimes during execution of the ``\Athletic\AthleticEventTest::testCorrectRunsCount()`` test.