Filter löschen
Filter löschen

output tic/toc functions ?

4 Ansichten (letzte 30 Tage)
Fed
Fed am 11 Mär. 2015
Kommentiert: Fed am 11 Mär. 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!

Akzeptierte Antwort

Adam
Adam am 11 Mär. 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 Kommentar
Fed
Fed am 11 Mär. 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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by