Create a node, then attach a script and:
-Create a time variable, set it to 0.0;
-Put time += delta in _process();
-Create a get_time() function, and put return time in it.
And with that you should have finished. Then just call get_time() if you want to get the time.
If you want, you can also add a reset_time function that sets the time to zero.