SkillAgentSearch skills...

Rdtsc

Python wrapper around the RDTSCP instruction to get the cycle counter on X86

Install / Use

/learn @Roguelazer/Rdtsc
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

This is a crappy ctypes-based wrapper around the X86 RDTSC instruction to get cycle timers.

It will only work on x86-64 systems and probably requires GCC to install. Caveat emptor.

CircleCI

Usage

import rdtsc

start = rdtsc.get_cycles()
# do stuff
end = rdtsc.get_cycles()
View on GitHub
GitHub Stars20
CategoryDevelopment
Updated7mo ago
Forks3

Languages

Python

Security Score

82/100

Audited on Aug 18, 2025

No findings