Time-on-task measurement