commit 2a60333bac6c807055d7d87aa9eaff5ffd18e587 from: Sven M. Hallberg date: Fri Nov 03 16:51:32 2023 UTC fix two typos Turns out my times were measured in centiseconds rather than milliseconds as advertised. Oops. Only discovered when looking to make them exact for the first time. Had mostly ignored the values as "probably way off anyway". That appears to have been an accurate assessment. X) It does show nicely how the algorithm doesn't care about absolute values. It operated just fine on centiseconds. commit - 7feee87ca3ff925f86f779cc9e50e989431906c3 commit + 2a60333bac6c807055d7d87aa9eaff5ffd18e587 blob - a74d4a2af06ce40acc5fe9c0be9975b5965ae952 blob + 41ac7d2f633699e5e7ac35be07034581ade67a55 --- teach.c +++ teach.c @@ -167,7 +167,7 @@ trial(int i, int ch) /* * Emphasize new/unknown symbols by a short pause and automatically - * shown them after playback. + * show them after playback. */ if (failprob[i] > 0.9) sound(' '); /* inter-word pause */ @@ -188,7 +188,7 @@ trial(int i, int ch) /* measure response time */ clock_gettime(CLOCK_MONOTONIC, &t1); timespecsub(&t1, &t0, &delta); - taken = delta.tv_sec + delta.tv_nsec / 10000000000.0; /* s */ + taken = delta.tv_sec + delta.tv_nsec / 1000000000.0; /* s */ sigma = sqrt(vartime); /* if return pressed, pause and show scores */