Home
last modified time | relevance | path

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

/third_party/python/Python/
Dpytime.c388 long unit_to_ns) in _PyTime_FromDouble() argument
395 d *= (double)unit_to_ns; in _PyTime_FromDouble()
408 long unit_to_ns) in _PyTime_FromObject() argument
417 return _PyTime_FromDouble(t, d, round, unit_to_ns); in _PyTime_FromObject()
431 if (_PyTime_check_mul_overflow(sec, unit_to_ns)) { in _PyTime_FromObject()
435 *t = sec * unit_to_ns; in _PyTime_FromObject()
/third_party/python/Lib/test/
Dtest_time.py806 unit_to_ns = SEC_TO_NS / float(unit_to_sec)
807 values = [ns / unit_to_ns for ns in ns_timestamps]
809 unit_to_ns = SEC_TO_NS // unit_to_sec
810 values = [ns // unit_to_ns for ns in ns_timestamps]