by comparing the time duration between two impulses with a reference time