Looking for a better frequency counter library

Actually I missed it:
Took: 4294902248 counts. Frequency: 0 Hz. Finish: 1229062193 Start: 1229127241

The sample started after it finished:
1229062193 - Finished time
-1229127241 - Starting time

-65048 - Elapsed time
4294902248 - Unsigned 32 bit int.