<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def timed (log=sys.stderr, limit=2.0):
 """Decorator to run a function with timing info."""

    return lambda func: timeit(func, log, limit)