Add a function to invalidate the time function of a clock. Useful for when the function becomes invalid.