We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9ca9e7 + e706b91 commit e18c81bCopy full SHA for e18c81b
linuxpy/ctypes.py
@@ -91,7 +91,7 @@ class timeval(Struct):
91
def set_ns(self, value=None):
92
if value is None:
93
value = time.time_ns()
94
- microsecs = time.time_ns() // NANOSEC_PER_MICROSEC
+ microsecs = value // NANOSEC_PER_MICROSEC
95
self.secs = microsecs // MICROSEC_PER_SEC
96
self.usecs = microsecs % MICROSEC_PER_SEC
97
0 commit comments