FROM : Damien Bobillot
DATE : Sat Jul 08 00:17:36 2006
Gerriet M. Denkmann wrote :
> How can I read the hardware clock?
> (Not the system clock as in NSDate or gettimeofday, but the thing
> which keeps the time when the computer is sleeping or turned off).
NSDate makes internally a call to gettimeofday. gettimeofday is a
system call that read the hardware clock. It's far from sufficient in
most cases. If you have a very specific need that is not meet by
gettimeofday, explain it : otherwise nobody will be able to answer you.
--
Damien Bobillot
DATE : Sat Jul 08 00:17:36 2006
Gerriet M. Denkmann wrote :
> How can I read the hardware clock?
> (Not the system clock as in NSDate or gettimeofday, but the thing
> which keeps the time when the computer is sleeping or turned off).
NSDate makes internally a call to gettimeofday. gettimeofday is a
system call that read the hardware clock. It's far from sufficient in
most cases. If you have a very specific need that is not meet by
gettimeofday, explain it : otherwise nobody will be able to answer you.
--
Damien Bobillot
| Related mails | Author | Date |
|---|---|---|
| Gerriet M. Denkman… | Jul 7, 11:26 | |
| Damien Bobillot | Jul 8, 00:17 | |
| Shawn Erickson | Jul 8, 00:21 | |
| Gerriet M. Denkman… | Jul 8, 07:38 | |
| Ed Wynne | Jul 8, 08:48 | |
| Gerriet M. Denkman… | Jul 8, 13:00 | |
| Ed Wynne | Jul 8, 19:59 |






Cocoa mail archive

