Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

change ticks to seconds

Hello, i wanna check the processing time of certain function by using alt_timestamp. When i get the freq using alt_timestamp_freq and divide it with number of ticks, the value is always 0. why?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Well, if I understand you correctly, are you dividing the frequency by the number of ticks? In that case after one second you will always get 0 as the number of ticks will be always higher than the frequency. You should do it the opposite way.