sklearn.utils.bench.total_seconds

sklearn.utils.bench.total_seconds(delta)[source]

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