Sagib
I am not sure what you are refering to when you say 'T-on time.' I am not aware of that term. Could you please explain.
If the signal is just a normal DC pulse, you can read in the signal continuously, then analyze the data. You can determine how many clock pulses the signal was at a high voltage and the same for the lower voltage. Then, divide the number of clock pulses the signal was high by the sampling frequency to determine the time the signal was high. Do the same thing for the low voltage. From these calculations, you can determine the dute cycle.
If I am miss understanding your application, please let me know.
Brian