Online users block
From MoodleDocs
This block shows the users who have been logged into the current course for a period of time which is set by the site administrator (by default it is 5 minutes). Note that even though a user has been logged into a course within the last 5 minutes, it does not necessarily mean that this user is still online.