Calculating the time taken for a task in SAMV71

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0



I need to calculate the time taken for 300 loops of my code. In arduino I used to use millis( ). Is there an equivalent of millis() in ASK for SAMV71?I came across this page in ASF but when I tried to include time_tick.h I get an error saying no such file or directory. Here is my code for calculating the total loops time where i is the loop counter. This code does not work as the library is not found.


  tick_start = time_tick_get();
  //algo runs
	  tick_end = time_tick_get();
	  printf("Time %d \n",tick_end-tick_start);