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)
def func(n): m = r_ulonglong(n) m *= 100000 return longlongmask(m)
def f(x=r_ulonglong): try: return longlongmask(x) except ValueError: return 0