필터 지우기
필터 지우기

output tic/toc functions ?

조회 수: 5 (최근 30일)
Fed
Fed 2015년 3월 11일
댓글: Fed 2015년 3월 11일
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!

채택된 답변

Adam
Adam 2015년 3월 11일
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
Fed
Fed 2015년 3월 11일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by