Statistics for time tracking & activity

Hello,

we are trying to understand if Matomo will work for our needs. One of our requirements is time tracking - so I need to know the total time user has spent on our web-site, preferably in log format like
url, start time, end time

another feature is how active user was: basically if he did not move mouse or pressed any keys for N seconds, then he becomes inactive.

Does Matomo have such options ?

Thanks!