Creates a new periodic function wrapper.
The interval at which to call the function. A zero or negative interval will execute the function on every call.
The function to call.