We are working on a mobile system/app which monitors user interaction (such as screen unlock and attentiveness to notifications) and I was wondering if there are any suitable functions measure attention taking in account reaction-time switching costs and so on. we are not intending to use any physiological or brain sensors. All measurements will be based on user interaction.