Calculate each enabled users active times from tl_log entries. Auto logouts aren't included in the calculation. Neither is inactive time.
composer require dreibein/contao-activity-bundle
Simply login with the user of choice. All tl_log entries are automatically processed and saved to new table.