import time


def timestamp(fun):

    def func():
        begin = time.time()
        fun()
        end = time.time()
        print(fun.__name__, end - begin)
    return func


@timestamp
def AAA():
    time.sleep(2)


@timestamp
def BBB():
    time.sleep(3)


AAA()
BBB()

2becc67cf05f93371a44452cb77790f11174eb27
<mask token>


@timestamp
def AAA():
    time.sleep(2)


<mask token>

<mask token>


def timestamp(fun):

    def func():
        begin = time.time()
        fun()
        end = time.time()
        print(fun.__name__, end - begin)
    return func


@timestamp
def AAA():
    time.sleep(2)


@timestamp
def BBB():
    time.sleep(3)


<mask token>

<mask token>


def timestamp(fun):

    def func():
        begin = time.time()
        fun()
        end = time.time()
        print(fun.__name__, end - begin)
    return func


@timestamp
def AAA():
    time.sleep(2)


@timestamp
def BBB():
    time.sleep(3)


AAA()
BBB()

import time


def timestamp(fun):

    def func():
        begin = time.time()
        fun()
        end = time.time()
        print(fun.__name__, end - begin)
    return func


@timestamp
def AAA():
    time.sleep(2)


@timestamp
def BBB():
    time.sleep(3)


AAA()
BBB()
