更新时间:2023-01-22 12:11:04
时间$ c>元素
GdkEvent
以毫秒为单位。与 g_get_monotonic_time()
(以μs为单位)除以 1000
应该工作(确保检查符号和在比较之前转换为 guint32
)
The time
element of GdkEvent
is in miliseconds. Comparing with g_get_monotonic_time()
(which is in µs) divided by 1000
should work (make sure to check the sign and cast to guint32
before comparing)