Esempio n. 1
0
File: rtimer.py Progetto: njues/Sypy
def read_timestamp():
    # Returns a longlong on 32-bit, and a regular int on 64-bit.
    # When running on top of python, build the result a bit arbitrarily.
    x = long(time.time() * 500000000)
    if _is_64_bit:
        return intmask(x)
    else:
        return longlongmask(x)
Esempio n. 2
0
 def func(n):
     m = r_ulonglong(n)
     m *= 100000
     return longlongmask(m)
Esempio n. 3
0
 def f(x=r_ulonglong):
     try:
         return longlongmask(x)
     except ValueError:
         return 0
Esempio n. 4
0
 def func(n):
     m = r_ulonglong(n)
     m *= 100000
     return longlongmask(m)
Esempio n. 5
0
 def f(x=r_ulonglong):
     try:
         return longlongmask(x)
     except ValueError:
         return 0