---+ cycle_counter.h <pre> typedef unsigned long long CPU_clock_num; CPU_clock_num realcc(void); </pre> -------------------------------- ---+ cycle_counter.c <pre> #include "cycle_counter.h" CPU_clock_num realcc(void) { unsigned long long cc; /* read the 64 bit process cycle counter into variable cc */ asm volatile("rdtsc" : "=r"(cc) : : "memory"); return cc; } </pre> -- Users.AntonioValletta - 23 Nov 2001 <br>
This topic: Sistemioperativi1
>
Cycle_counter
Topic revision: r1 - 2001-11-23 - AntonioValletta
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback