[comp.windows.x] How do you ask the server time?

steve@acorn.UUCP (Steve "daffy" Hunt) (10/15/88)

While trying to improve the appearance of interactive drags,
I found I wanted to enquire from the X11r2 server what its current
time was; that is, ask it what timestamp it would put on an event
if one should happen right now.  I can't find any reference to
such a call in the Xlib manuals.

Maybe the facility *is* there and I'm just not looking hard enough,
or maybe there is some good reason why no such call exists.

Can anyone enlighten me?

Steve Hunt

--
++ Steve Hunt ++ Acorn Computers, Ltd ++ daffy@acorn.uucp ++ daffy@acorn.co.uk

RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (10/21/88)

    Date: 14 Oct 88 23:35:30 GMT
    From: mcvax!ukc!acorn!steve@uunet.uu.net  (Steve "daffy" Hunt)

    I found I wanted to enquire from the X11r2 server what its current
    time was; that is, ask it what timestamp it would put on an event
    if one should happen right now.

There is no straightforward way to do this.  A backhanded way is to
select PropertyChangeMask on a window you own, change a property, and
look at the timestamp in the PropertyNotify event you get back.