ãã«ã¦ã§ã¢ã解æããéã«ã¯VMã§è§£æãè¡ããã¨ãå¤ãã®ã§ãVMãæ¤ç¥ãã¦ã¢ã³ãããããã³ã°ãããã«ã¦ã§ã¢ãåå¨ãããããããç¨ããææ³ã«ã¤ãã¦ã¾ã¨ããã 1. TSCãç¨ãã TSC(IA32_TIME_STAMP_COUNTER_MSR: TSC_MSR)ã¨ã¯ãCPUã¯ããã¯ãã¨ã«å ç®ããã64bitã®ã¿ã¤ã ã¹ã¿ã³ãã«ã¦ã³ã¿ã§ãããããã RDTSCï¼Read Time Stamp Counterï¼å½ä»¤ã使ã£ã¦èªã¿åºããã¨ã§ãCPUã¯ããã¯ã¨åãå解è½ãæã¤ç²¾åº¦ã®ã¿ã¤ãã使ããã¨ãã§ããã CPUã¯ããã¯ã«åºã¥ãç¸å¯¾æå»ã®è¨æ¸¬ ãã®ã¿ã¤ããç¨ãã¦ãVMã¨ãã¹ããã·ã³ã§å®è¡ããæã®æéå·®ã確èªãããã¨ã§VMãæ¤ç¥ã§ããã以ä¸ã®ã³ã¼ãã¯winä¸ã®gccã§åä½ããã # include <stdio.h> int main(void) { unsigned int time1 = 0; uns
{{#tags}}- {{label}}
{{/tags}}