Skip to content

Instantly share code, notes, and snippets.

View Nerwosolek's full-sized avatar
💭
aRRRR!

Tomasz Gieorgijewski Nerwosolek

💭
aRRRR!
View GitHub Profile
@Nerwosolek
Nerwosolek / xvsync.cpp
Created October 12, 2024 09:53 — forked from JC3/xvsync.cpp
x sync extension system counter list and test
// link to -lX11 -lXext
#include <cstdio>
#include <X11/Xlib.h>
#include <X11/extensions/sync.h>
#include <inttypes.h>
#include <sys/time.h>
#include <unistd.h>
static void testCounterFrequency (Display *display, XSyncSystemCounter *sc) {