J
Jo. Schmitt
Hi all!
Each time an event happens I want to print a timestamp.
Using 'time_t' etc. works fine but it only has attributes for
an 'one second resolution'.
I tried to examine the code of Tcp-/Windump because
they have a 0.000000 second resolution. Unfortunatly I
dont really understand the code there. Could only
figure out that a 'timeval' struct from the BSD/time.h
file has been used. (which I do not have an could not download
from the www (maybe its not free anyway)
How are you programming timers with an sec.000 resolution??
A ms resulution would be fine for me
THX
Each time an event happens I want to print a timestamp.
Using 'time_t' etc. works fine but it only has attributes for
an 'one second resolution'.
I tried to examine the code of Tcp-/Windump because
they have a 0.000000 second resolution. Unfortunatly I
dont really understand the code there. Could only
figure out that a 'timeval' struct from the BSD/time.h
file has been used. (which I do not have an could not download
from the www (maybe its not free anyway)
How are you programming timers with an sec.000 resolution??
A ms resulution would be fine for me
THX