<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def time_annotated(func, *args, **kwargs):
 """Annotate the decorated function or method with the total execution time. The result is annotated with a `time` attribute. """

    start = time()
    result = func(*args, **kwargs)
    end = time()
    result.time = round(end - start, config.PRECISION)
    return result