Have you studied the three offerings to see if you can modify them to work?

When you tried p45Cal's code you said
Its stops at the ranges which are only 1 sec long. (Exp: 00:00:00 - 00:00:01)
Do you mean that you have run times that are only 1 second long? That might require special code to handle such cases.