Added timer calculations to event loop

Change-Id: If3f9b2916f14ab117a97561c3def22c3bcd6f4af
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>