We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a760a2 commit 902e01bCopy full SHA for 902e01b
qiling/os/qnx/syscall.py
@@ -3,7 +3,15 @@
3
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
4
#
5
6
-from time import time_ns
+try:
7
+ from time import time_ns
8
+except ImportError:
9
+ from datetime import datetime
10
+ # For compatibility with Python 3.6
11
+ def time_ns():
12
+ now = datetime.now()
13
+ return int(now.timestamp() * 1e9)
14
+
15
from binascii import hexlify
16
17
from qiling.utils import ql_get_module_function
0 commit comments