RE: How to convert the server time in xEvent to system time?

2004-08-11 Thread Marc Aurele La France
On Tue, 10 Aug 2004, Weidong Cui wrote: Does anybody know how X computes the time stamp for xEvents? The Source, Luke. Use the Source... xEvent.u.keyButtonPointer.time (aka 'server time'?), defined in X11/Xproto.h, indicates the number of milliseconds elapsed since the X server started.

Re: How to convert the server time in xEvent to system time?

2004-08-10 Thread Oliver Welter
Am 11.08.2004 00:31:59 schrieb(en) Weidong Cui: Hi, There, xEvent.u.keyButtonPointer.time (aka 'server time'?), defined in X11/Xproto.h, indicates the number of milliseconds elapsed since the X server started. I want to convert it to an absolute time which then can be compared with times

RE: How to convert the server time in xEvent to system time?

2004-08-10 Thread Weidong Cui
Hi, Oliver, Thanks a lot for your reply. I tried this idea before. But the time of the start of the X server I got in this way was not accurate enough for my purpose. Does anybody know how X computes the time stamp for xEvents? Thanks, Weidong Cui I don't know much about this, but I would