c - 获取当前 X11 服务器时间

标签 c time x11 xlib

使用Xlib,可以查询当前X服务器时间吗?我的意思是将在 time 中返回的值领域XEvent如果我们现在要接收一个事件。

最好不要打开任何 window 。

最佳答案

也许 this是您要搜索的内容:

The only system counter that is guaranteed to be present is called SERVERTIME, which counts milliseconds from some arbitrary starting point. The least significant 32 bits of this counter track the value of Time used by the server in Events and Requests. Other system counters may be provided by different implementations of the extension. The X Consortium will maintain a registry of system counter names to avoid collisions in the name space.

关于c - 获取当前 X11 服务器时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61849695/

相关文章:

c - 为什么在跨步预取时循环顺序很重要?

x11 - QStandardPaths: XDG_RUNTIME_DIR 未设置,默认为 '/tmp/runtime-aadithyasb'

ubuntu - x11vnc xopendisplay 失败

c - K&R 书本练习 4-2

c - 在调用返回行为方面,fork() 和 exec() 系统调用与其他系统调用有何不同?

c - 如何安排两个任务?

php - 究竟是什么导致这个每六个月一个小时的时间计算错误?

python - 使用记录器在日志名称中添加时间

PHP 将时间设置为太平洋夏令时

linux - Qt with XComposite问题