Effacer les filtres
Effacer les filtres

output tic/toc functions ?

4 vues (au cours des 30 derniers jours)
Fed
Fed le 11 Mar 2015
Commenté : Fed le 11 Mar 2015
Hello!
I am using tic/toc functions, the output I got values like 2,103 I expected to have a value within the range of milliseconds since I am measuring the RT. What does that value mean? Thanks in advance!

Réponse acceptée

Adam
Adam le 11 Mar 2015
The documentation says it returns time in seconds.
I only ever use tic toc for an approximate idea of time though and usually relative some other implementation rather than as an absolute value.
timeit
is usually more accurate if you want to measure how long a function takes though.
  1 commentaire
Fed
Fed le 11 Mar 2015
Thanks Adam, but I don't want to measure how long a function lasts rather the time elapsing from the presentation of an stimulus and the response of the subject (pressing a button). I am not sure these tic/toc functions are the best solutions. Thanks anyway

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by