At my company, at the first position I held, I was an FTE at a help desk. Management thought it was a good idea to mix it up and put people in change of units that were outside the expertise of those holding positions. Some shitty lady from finance, with an MBA, became our boss. She had this sort of mentality about time.
Previously, I'd stay until the job was done and not think anything of the time I was losing. I liked my job and helping people. She decided one day, when I left about 15-minutes to make a doctor appointment across town, that I had done something wrong and needed to work my entire 7.5-hour shift. She wanted us to note everything we did and document it for her review.
She fucked up. To comply, I wrote a program to track when I locked and unlocked my computer and log it with date time and show the running total of the time worked per day. I stopped staying late. I stopped returning from lunch early if I knew we were busy. People stood at the counter waiting while I finished incidental things at the end of my shift to prevent any late departures. I made sure to never leave early, but I never stayed late or took walkups near my 7.5-hour day.
Malicious compliance is my favorite kind of compliance!