def timeit(command, round_result=True):
    """

    Time how long a command takes to execute

    command:
    The command to time.

    round_result:
    Whether or not to round the number to an integer.

    """
    t1 = time.clock()
    exec(command)
    t2 = time.clock()
    if round_result is True:
        return int(t2 - t1)
    return t2 - t1
def timeit ( command , round_result = True ) : t1 = time . clock ( ) exec ( command ) t2 = time . clock ( ) if round_result is True : return int ( t2 - t1 ) return t2 - t1
Time how long a command takes to execute

    command:
    The command to time.

    round_result:
    Whether or not to round the number to an integer.