æ¨æ¥ã®æ¥è¨ï¼id:torutk:20121019ï¼ã§ãnativeã¡ã½ããSystem.nanoTime()ã®Windowsã§ã®å®è£ ã調ã¹ããã®å®è£ ã§ä½¿ç¨ãã¦ããWindows API QueryPerformanceCounterãC/C++ã³ã¼ãã§åãããã¨ã§å解è½ï¼å¨æ³¢æ°ï¼ã¨APIã®å¦çæéãåå¾ãã¾ããã ãã®ããã«ã¯ãWindows APIãå¼ã³åºããC/C++éçºç°å¢*1ãã»ããã¢ããããå¿ è¦ãããã¾ããã¾ããJavaã«ã¯ãã¤ãã£ãã³ã¼ãï¼C/C++ï¼ãå¼ã³åºãããã®JNIã¨ããä»çµã¿ãæ¨æºè£ åããã¦ãã¾ããããããC/C++éçºç°å¢ãå¿ è¦ã¨ãªãã¾ãã ããã§ãæ¢åã®Cã©ã¤ãã©ãªï¼Windows APIãªã©ï¼ãJavaããç´æ¥å¼ã³åºããã¨ãã§ããJNAã©ã¤ãã©ãªã使ç¨ãã¦ã¿ã¾ãããJNAã使ãã°ãJNIã®ããã«C/C++ã³ã¼ããæ¸ããªãã¦æ¸ã¿ã¾ãã JNAã©ã¤ãã©ãªã®å ¥æ JN
{{#tags}}- {{label}}
{{/tags}}