[PD] measuring time with sample accuracy