Added loop that gathers time stats in simple example.