Lines Matching refs:SEC_TO_NS
28 SEC_TO_NS = 10 ** 9 variable
753 units = [1, US_TO_NS, MS_TO_NS, SEC_TO_NS]
782 ns = (2 ** pow2) * SEC_TO_NS
788 ns_timestamps.append(seconds * SEC_TO_NS)
796 ns = (2 ** 63 // SEC_TO_NS) * SEC_TO_NS
806 unit_to_ns = SEC_TO_NS / float(unit_to_sec)
809 unit_to_ns = SEC_TO_NS // unit_to_sec
837 ns = self.OVERFLOW_SECONDS * SEC_TO_NS
867 OVERFLOW_SECONDS = math.ceil((2**63 + 1) / SEC_TO_NS)
877 lambda secs: secs * SEC_TO_NS,
890 lambda secs: secs * SEC_TO_NS)
894 lambda ns: self.decimal_round(ns * SEC_TO_NS))
905 if abs(ns) % SEC_TO_NS == 0:
906 return float(ns // SEC_TO_NS)
908 return float(ns) / SEC_TO_NS
957 return divmod(ns, SEC_TO_NS)
1037 self.create_converter(SEC_TO_NS),