RDTSC


Also found in: Wikipedia.
AcronymDefinition
RDTSCRead Time Stamp Counter
RDTSCRead Time-Stamp Counter (instruction to access the CPU cycles counter)
Copyright 1988-2018 AcronymFinder.com, All rights reserved.
References in periodicals archive ?
start = rdtsc (); While (1){ flush_flush (addr + offset); for (int i=0; i<1000, ++i) sched_yield (); } ...
In this work, we just estimate the processing time of SAD algorithm and to obtain the execution time in terms of CPU clock cycles, we use RDTSC (Read Time Stamp Counter) instruction to measure the execution time of the three different code blocks.
getcycles Function #include <sys/time.h> #include <sys/types.h> typedef long long hrtime_t hrtime_t getcycles(void) { unsigned int tmp[2]; __asm__("rdtsc" : "=a" (tmp[1]), "=d" (tmp[0]): "c" (0x10)); return ((hrtime_t)tmp[0]<<32|tmp[1]); } E = [T.summation over 1] U x [I.sub.t] x t (1)