Universal Plugin to Track Editing Time & Artist Efficiency in Photoshop

I’m looking to develop a universal plugin that tracks the time an artist spends on a file in Photoshop (starting from v17 and above) and sends this data to a Node.js server for efficiency analysis. The goal is to gain insights into productivity and workflow optimization. Has anyone worked on a similar implementation, or can suggest the best approach to achieve this across multiple Photoshop versions? Looking forward to your thoughts and suggestions!