Overkill. Use https://timewarrior.net instead.
Timewarrior is overkill, an automatic background time tracker is even less overhead.
Timewarrior automatically tracks your time using [start][1] and [stop][2] commands. It also works like a Stopwatch[3], no start command needed.
[1] https://timewarrior.net/docs/timew-start.1.html