Home
last modified time | relevance | path

Searched refs:unit_to_ns (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Python/
Dpytime.c382 long unit_to_ns) in _PyTime_FromDouble() argument
389 d *= (double)unit_to_ns; in _PyTime_FromDouble()
402 long unit_to_ns) in _PyTime_FromObject() argument
411 return _PyTime_FromDouble(t, d, round, unit_to_ns); in _PyTime_FromObject()
425 if (_PyTime_check_mul_overflow(sec, unit_to_ns)) { in _PyTime_FromObject()
429 *t = sec * unit_to_ns; in _PyTime_FromObject()
/external/python/cpython3/Lib/test/
Dtest_time.py815 unit_to_ns = SEC_TO_NS / float(unit_to_sec)
816 values = [ns / unit_to_ns for ns in ns_timestamps]
818 unit_to_ns = SEC_TO_NS // unit_to_sec
819 values = [ns // unit_to_ns for ns in ns_timestamps]