Removed global var end_time that's never used

Removed an implicit set of a global variable `end_time` that is never used and prevent contamination of global namespace.