It becomes a lot easier when you need to do it to get paid.
I loathe time tracking for internal metrics, but if I need to do it to get paid the motivations change and it just becomes part of the workflow.
I HAVE been in situations where logging 19 minutes to project X and 37 minutes to project Y was 'crucial' because 'accuracy was vital' but... damnit - I don't stop thinking about your project just because I'm not sitting in front of some time tracking app. I avoid those situations wherever possible now (and it's quite possible).
I used to be super granular about it until I realized I was billing the equivalent of 8 hours of work as a full time engineer, as 2.5 hrs or whatever, due to the nature of granular billing. Turns out I'm hella unproductive when I spend all day at the office. So I switched to more like dedicating some chunk of my day to work, then billing that chunk, even if some of the time I was making coffee or like, going on a quick walk break.
In all honesty with how much more productive I am as a contractor I could probably justify billing flat 8 hours a day but I'm just too honest or something.
Use a kitchen timer, then every time you finish something input the time precisely.