fix compilation warnings
fix timeToMeasure problems