Converting frequency to time (SOLVED)

You could make them unsigned int for coherence