How to create a time counter using the API/modules

Im trying to find information on what JIRA developer tools I can use to create an un-editable text field that is displayed in the view screen and starts counting the time elapsed when an issue is created. The time counter doesn’t need to show it is updating all the time just on page refresh.

  1. Firstly is there something within JIRA already that can achieve this without being developed?
  2. Secondly, if not firstly, then what JIRA Dev tools (modules/API’s, etc.) could I use to achieve this? I have been looking at https://developer.atlassian.com/cloud/jira/platform/modules/issue-field/ mostly but it hasn’t been working for me, or maybe im not using it correctly. But basically I created a small Atlassian-connect app to serve that sample code from the link. It doesn’t seem to work.

Any suggestions are greatly appreciated. Thanks in advance.