At first I get a time by
time_t t1 = time(0)
(is it right for getting current time?)
then
time_t t2 = time(0)
now I want the find the difference between t1 and t2 in milliseconds
I searched a lot but it didn’t worked.
lots of casting problems and unable to change it to milliseconds
thanks for your help in advance
Use
difftime:This gives you the difference in seconds. Multiply
diffby1000to get milliseconds.