changed use of destructor
Timing code works