use greater than function in comparison palette.
for time measurement when the LED turns ON off you can record the tick count, and the difference between tick counts will give you desired result.
you can post your code so that we can help you out. with implemetation