Remove duplicate time measurement
Avoid compiler warning messages