5 2 Problem (P) University of Electronic Science Technology of China(UESTC) P:How to detect the distance in real-time? >Distance=(TimeDuration 340m/s)/2; >How to get the TimeDuration? Real-Time Systems Lab5 Real-Time Systems Lab University of Electronic Science & Technology of China (UESTC) 2 Problem (P1 ) P1 : How to detect the distance in real-time? Distance=(TimeDuration * 340m/s)/2; How to get the TimeDuration?