Is there any advantage to using getsecs over matlab's buit-in tic & toc
commands in matlab7. I know that in matlab 6 and earlier tic & toc had
very poor resolution 10 ms on my windows machines, but I've noticed
that in matlab7, toc seems to have extremely high resolution (sub
nanosecond) and it takes less time to execute than getsecs (although
they're both fast - 2us versus 4us). This seems true in both windows
and OS-X in my limited testing.
So is there any advantage to using getsecs?
commands in matlab7. I know that in matlab 6 and earlier tic & toc had
very poor resolution 10 ms on my windows machines, but I've noticed
that in matlab7, toc seems to have extremely high resolution (sub
nanosecond) and it takes less time to execute than getsecs (although
they're both fast - 2us versus 4us). This seems true in both windows
and OS-X in my limited testing.
So is there any advantage to using getsecs?