added timing measurement classes
added sleep inaccuries handling