output tic/toc functions ?

11 views (last 30 days)
Fed
Fed on 11 Mar 2015
Commented: Fed on 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!

Accepted Answer

Adam
Adam on 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 Comment
Fed
Fed on 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

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!