Update timer.hpp to fix declaration bug

It looks like end_time was not properly defined and thus caused a compilation error.