Determine The Input Time with tic,toc
古いコメントを表示
Hello, I want to elapse the time that user spend on entering input. How can i do that ? I tried this below but MATLAB gave like 3.6175e-05 seconds. It looks really short. Here is my code
tic;
userinput = get(hObject,'String');
ts=toc;
disp(ts);
a = 5;
timeratio = ts/a ;
set(handles.text12,'String',num2str(timeratio,'%.0f'));
disp(timeratio);
1 件のコメント
Walter Roberson
2019 年 6 月 11 日
Perhaps you should look at the third party Psychtoolbox
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Timing and presenting 2D and 3D stimuli についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!