예제 #1
0
파일: rtimer.py 프로젝트: 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)
예제 #2
0
 def func(n):
     m = r_ulonglong(n)
     m *= 100000
     return longlongmask(m)
예제 #3
0
 def f(x=r_ulonglong):
     try:
         return longlongmask(x)
     except ValueError:
         return 0
예제 #4
0
 def func(n):
     m = r_ulonglong(n)
     m *= 100000
     return longlongmask(m)
예제 #5
0
 def f(x=r_ulonglong):
     try:
         return longlongmask(x)
     except ValueError:
         return 0