This is documentation for an old release of Scikit-learn (version 0.20). Try the latest stable release (version 1.6) or development (unstable) versions.
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