| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Could you tell me what event the time value is based off of in IOHIKeyboard's keyboardEventAction? It seems similar to the system's uptime, but as you can see from the code below it is not. Code: void myKeyboardEventAction(OSObject * target, unsigned eventType, unsigned flags, unsigned key, unsigned charCode, unsigned charSet, unsigned origCharCode, unsigned origCharSet, unsigned keyboardType, bool repeat, AbsoluteTime time) { u_int32_t calendarHi,calendarLo,systemHi,systemLo; u_int64_t uptime; ... clock_get_uptime(&uptime); clock_get_calendar_nanotime(&calendarHi,&calendarLo); clock_get_system_nanotime(&systemHi,&systemLo); IOLog("event time %u %u calendar time %u %u systime %u %u uptime %qu\n",time.hi,time.lo,calendarHi,calendarLo,systemHi,systemLo,uptime); } Output: 3/25/08 3:33:45 PM kernel event time 228 1774164770 calendar time 1206477225 220085000 systime 981 26764241 uptime 981026763195 3/25/08 3:33:45 PM kernel event time 228 1846204876 calendar time 1206477225 292127000 systime 981 98805951 uptime 981098804881 3/25/08 3:33:46 PM kernel event time 228 2606205566 calendar time 1206477226 52123000 systime 981 858791519 uptime 981858790570 On Mar 25, 2008, at 1:26 PM, Dave Zarzycki wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden This email sent to email@hidden
| References: | |
| >AbsoluteTime & IOHIKeyboard's _keyboardEventAction (From: Matt Burnett <email@hidden>) | |
| >Re: AbsoluteTime & IOHIKeyboard's _keyboardEventAction (From: Brian Bergstrand <email@hidden>) | |
| >Re: AbsoluteTime & IOHIKeyboard's _keyboardEventAction (From: Matt Burnett <email@hidden>) | |
| >Re: AbsoluteTime & IOHIKeyboard's _keyboardEventAction (From: Dave Zarzycki <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.