Sholde / rdtscp

Use of the x86 RDTSCP instruction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use rdtscp instruction

Compile

$ make

Usage

Use the taskset command to pin the process to the desired core. Replace N with the core id.

$ taskset -c N ./main

Result

      cycles: 14054263169265
processor id: N

About

Use of the x86 RDTSCP instruction


Languages

Language:C 77.2%Language:Makefile 22.8%