Unified time measurement