
\c           @   s   d  Z  d   Z d S(   s#   
Helper functions for benchmarking
c         C   s   d } |  j  |  j | S(   s9  
    helper function to emulate function total_seconds,
    introduced in python2.7

    https://docs.python.org/library/datetime.html#datetime.timedelta.total_seconds

    Parameters
    ----------
    delta : datetime object

    Returns
    -------
    int
        The number of seconds contained in delta
    gư>(   t   secondst   microseconds(   t   deltat   mu_sec(    (    s2   lib/python2.7/site-packages/sklearn/utils/bench.pyt   total_seconds   s    N(   t   __doc__R   (    (    (    s2   lib/python2.7/site-packages/sklearn/utils/bench.pyt   <module>   s   