added timing utilities and removed -std=c99 dependency