Hi I need to find the time between two events in my code. Mainly I'm receiving packets over Bluetooth and as soon as I receive a certain amount of packets I launch a video player using fork() and exec().
On every packet I receive I increment a packet counter and on the nth packet I execute the video player.
Basically what I need is a timer from: the time the first packet arrives till the time the nth packet arrives
I used the standard time_t function but I need something more accurate. Ideally something up to millisecond accuracy would be perfect.
thanks