Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/k/sklearn-compiledtrees-1.2/benchmarks/bench_compiled_tree.py   sklearn-compiledtrees(Download)
from sklearn.tree.tree import DTYPE
from sklearn.utils import array2d
from sklearn.utils.bench import total_seconds
import argparse
import gc
        predictor.predict(X)
        end = datetime.now()
        total += total_seconds(end - start)
    return total / args.iterations
 

src/s/c/scikit-learn-0.14.1/sklearn/utils/tests/test_bench.py   scikit-learn(Download)
 
import datetime
 
from sklearn.utils.bench import total_seconds
from nose.tools import assert_equal
def test_total_seconds():
    delta = (datetime.datetime(2012, 1, 1, 5, 5, 1)
             - datetime.datetime(2012, 1, 1, 5, 5, 4))
    assert_equal(86397, total_seconds(delta))