Add getTime method to the WebServer