philchalmers / mirtCAT

Computerized Adaptive Testing with Multidimensional Item Response Theory
http://philchalmers.github.io/mirtCAT/
89 stars 28 forks source link

Item timer freezes after 1 minute #30

Closed MagnusNordmo closed 3 years ago

MagnusNordmo commented 3 years ago

The item timer timer freezes after one minute. This happens because of as.numerics (POSIX) default behaviour is to count output minutes after one minute has passed, instead of seconds, which is required in the delta_time function.

E.g.

as.numeric(Sys.time() - (Sys.time() - 50)) and as.numeric(Sys.time() - (Sys.time() - 62))

philchalmers commented 3 years ago

Interesting, I was not aware of this behaviour. Great catch! I'll inspect your pull request and close this issue as it seems to have been fixed there.