Stats class can now also receive past events of known duration

You can now feed the Stats class either with events happening at the exact moment in time (such as "right now event 5 is starting") and additionally, tell that certain event took specified duration in the past ("we have an event that has taken 3 seconds from start to an end"). Both types are taken into consideration while calculating the event statistics.