I want to calculate diff b/w these starttime and endtime with use of mktime. I need response time in milisecond. I am using mktime to get these times. last three digits are in milisecond
Starttime 2013-04-03 08:54:19,989
End time 2013-04-03 08:54:39,389
It can be done by combining parsing and mktime as mktime alone cannot adjust for the millisecs in the input.
Parse the date/time field using gensub and feed it to mktime which gives seconds since the Epoch.
Then convert those seconds into milliseconds and add the ones provided in the input.
Once you have the time in milliseconds subtract the endtime from the starttime.