def timer(seconds):
    'Prints time for specified number of seconds.'
    start = time.time()
    while time.time() - start <= seconds:
        print basic_format(aens_seconds())
        beta = aens_beta(aens_seconds())
        while beta == aens_beta(aens_seconds()):
            pass
Prints time for specified number of seconds.
recipes/Python/496864_ztimepy/recipe-496864.py