Determine The Input Time with tic,toc
Mostra commenti meno recenti
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 Commento
Walter Roberson
il 11 Giu 2019
Perhaps you should look at the third party Psychtoolbox
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Timing and presenting 2D and 3D stimuli in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!