Adds a time canvas for display of the time.

By default this feature is disabled. It can be enabled by setting the param showTime to true.

Needed this for my project. Feel free to reject it if you think it's too specific.