Added relative time with custom clock function