Since the start of the nanosecond from the Python program running on Mac OS X 10.6, I need to pass the time.
I use the following carbon call to get it in C code:
AbsoluteTime uptimeAbs = AbsoluteToNanoseconds (uptime); Uint64_t elapsedTime = ((uint64_t) uptimeAbs.hi << 32) + uptimeAbs.lo;
Is it possible to use these functions in a carbon or POBJC module in Python? I tried:
* uptime ()
but name "error: name 'uptime' is not defined".
How can I use this value from Python on OS X?
No comments:
Post a Comment