Added new feature that prints average frame delay