human
Give me a Python code to print get_dt() given the following:
Complete the below
def delta_t():

    ''''return time between each call like so:
    tick = delta_t()
    def get_dt():
    return next(tick)
    print get_dt()
    sleep(1)
    print get_dt()'
    '''
assistant
#Here is Python code to print get_dt()
.
    ts = time()
    while True:
        t = time()
        (dt, ts) = ((t - ts), t)
        (yield dt)