32-bit timestamp

Hi everyone,

does someone know a function to get a 32-bit timestamp, precise enough to cover more than seconds, such as gettimeofday() for example?
And also a function for the 64-bit NTP timestamp??

I am experimenting with RTP, where i need this kind of timestamps!

thanks
to all