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