import time
from a3_4_decorate_wraps import clock


@clock
def test_sleep(seconds, name=None):
    time.sleep(seconds)


@clock
def test_factorial(n, name="fi"):
    return 1 if n < 2 else n * test_factorial(n - 1)


if __name__ == '__main__':
    test_sleep(1.2, name='xiaoming')
    test_factorial(5, name='fi')

11ef1a31e4f5132bcf0979198d8effd8201b0888
<mask token>


@clock
def test_sleep(seconds, name=None):
    time.sleep(seconds)


<mask token>

<mask token>


@clock
def test_sleep(seconds, name=None):
    time.sleep(seconds)


@clock
def test_factorial(n, name='fi'):
    return 1 if n < 2 else n * test_factorial(n - 1)


<mask token>

<mask token>


@clock
def test_sleep(seconds, name=None):
    time.sleep(seconds)


@clock
def test_factorial(n, name='fi'):
    return 1 if n < 2 else n * test_factorial(n - 1)


if __name__ == '__main__':
    test_sleep(1.2, name='xiaoming')
    test_factorial(5, name='fi')

import time
from a3_4_decorate_wraps import clock


@clock
def test_sleep(seconds, name=None):
    time.sleep(seconds)


@clock
def test_factorial(n, name='fi'):
    return 1 if n < 2 else n * test_factorial(n - 1)


if __name__ == '__main__':
    test_sleep(1.2, name='xiaoming')
    test_factorial(5, name='fi')

import time
from a3_4_decorate_wraps import clock


@clock
def test_sleep(seconds, name=None):
    time.sleep(seconds)


@clock
def test_factorial(n, name="fi"):
    return 1 if n < 2 else n * test_factorial(n - 1)


if __name__ == '__main__':
    test_sleep(1.2, name='xiaoming')
    test_factorial(5, name='fi')
