average timing helpers for performance monitoring