Implement general-purpose microsecond timer