Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 394 Bytes

README.org

File metadata and controls

25 lines (18 loc) · 394 Bytes

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