// Interface to the x86 rdtsc() time counter, if available. // Not guaranteed to be synchronized across hardware threads and // therefore software threads, and can be updated asynchronously // by software. elapsed_counter() can jump backwards // as well as jump forward when threads query different cores/sockets. // Very much not recommended for general use. // INVTSC is a minimal requirement for auto-enablement.
class Rdtsc : AllStatic { public: static jlong elapsed_counter(); // provides quick time stamps static jlong frequency(); // tsc register staticbool is_supported(); // InvariantTSC static jlong raw(); // direct rdtsc() access staticbool is_elapsed_counter_enabled(); // turn off with -XX:-UseFastUnorderedTimeStamps static jlong epoch(); staticbool initialize();
};
#endif// CPU_X86_RDTSC_X86_HPP
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-09-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.