X server programming question
Roger Oberholtzer
roger
Mon Sep 11 01:31:49 PDT 2006
On Sat, 2006-09-09 at 22:06 +0800, Man-wai CHANG wrote:
> > When a key is pressed, the X event contains a timestamp. It seems this
> > is timestamp is, by design, a relative value related to when the X
> > server started. Perfectly ok for relative timing, especially between
> > networked machine, for which X is designed.
> >
> > I want to get the absolute PC time. I have seen discussions of this on
> > gaming sites, and no one has suggested a real solution. So, I am asking
> > here to see what knowledge there may be.
>
> Are you trying to alter the X protocol?
Nope. Just to use it as best I can. I want to tie an X event to the PC
clock, not just a relative time in the X server's notion of time. My
application is not network based in respect to the GUI. The keyboard,
display and X server are all on the local machine.
--
Roger Oberholtzer
OPQ Systems AB
Ramb?ll Sverige AB
Kapellgr?nd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden
Tel: Int +46 8-615 60 20
Fax: Int +46 8-31 42 23
More information about the Linux-users
mailing list