Determine The Input Time with tic,toc
Afficher commentaires plus anciens
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 commentaire
Walter Roberson
le 11 Juin 2019
Perhaps you should look at the third party Psychtoolbox
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Timing and presenting 2D and 3D stimuli dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!