Plugin/Javascript Code for a basic time tracker inside each note?

Plugin/Javascript Code for a basic time tracker inside each note?

I treat each note as it’s own “project” and would find it really helpful if every time I work on certain project, I hit start on the note so I can tell how much time I’ve spent on that particular project.

It’s not really that convenient using another app and then adding the time manually to the note every single time. (And no, I cannot use toggl.)

Was wondering if there was a plugin for something so basic yet helpful, or maybe a simple javascript snippet that can remember how much time I’ve spend and then add more to it with a simple Start/Stop?