# Path: generators/started.py
# @strict_globals(wraps=wraps)
# def started(generator_function):
#     """ starts a generator when created """
#     @wraps(generator_function)
#     def wrapper(*args, **kwargs):
#         g = generator_function(*args, **kwargs)
#         next(g)
#         return g
#     return wrapper


from .started import started
from timeit import default_timer as ts
from strict_functions import strict_globals
# -*- coding: utf-8 -*-
# @Author: ckochman
# @Date:   2017-05-04 16:48:03
# @Last Modified by:   Cody Kochmann
# @Last Modified time: 2017-12-09 13:29:27



@started
@strict_globals(ts=ts)
def timer():
    """ generator that tracks time """
    start_time = ts()
    while 1:
        yield ts()-start_time


# Path: generators/started.py
# @strict_globals(wraps=wraps)
# def started(generator_function):
#     """ starts a generator when created """
#     @wraps(generator_function)
#     def wrapper(*args, **kwargs):
#         g = generator_function(*args, **kwargs)
#         next(g)
#         return g
#     return wrapper


# Path: generators/timer.py
from .started import started
from timeit import default_timer as ts
from strict_functions import strict_globals

# -*- coding: utf-8 -*-
# @Author: ckochman
# @Date:   2017-05-04 16:48:03
# @Last Modified by:   Cody Kochmann
# @Last Modified time: 2017-12-09 13:29:27



@started
@strict_globals(ts=ts)
def timer():
    """ generator that tracks time """
    start_time = ts()
    while 1:
        yield ts()-start_time


del ts, started, strict_globals