Use DWT to measure the time