I don’t care how long anyone works. If you work 5000 hours but don’t produce anything useful, you’re no good to me.
I know exactly who gets work done. I can easily check the git repos and I’m at the standups. Some people are straight up negative value but cannot be fired. It’s impossible to fire anyone.
Maybe look at output? My experience is in call center/helpdesk. Either someone takes calls and tickets or they do not, very noticeable.
If the company really wants, there is software like Teramind and Aktivtrak that screenrecords and keylogs.