Set the timestamp comparison function.
MT safe.
the pads to use
the function to set
user data passed to the function