Get time externally

Is there any way to capture externally (with a plugin, for example) the amount of time that is elapsing or time accumulated in the graph?
I need to capture this value to do a calculation.

I am using Grafana with influxDB on linux, installed locally.