Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

c/c++ÿÌõÖ¸ÁîºÍº¯ÊýµÄÖ´ÐÐʱ¼äÊǶàÉÙ£¿

ÏëÖªµÀÿÌõÖ¸Áî»òº¯ÊýµÄϵͳÏûºÄ¡£±ÈÈçϵͳִÐÐint a=0£»µÄ¿ªÏúÊǶàÉÙ¡£ÓÐûÓÐÀàËƵÄÎĵµÖ®ÀàµÄ¡£²»ÒªºÍÎÒ˵ÓÃʲôclock()º¯ÊýÀ´²âÊÔ¡£ÎÒÏëÒªÏà¹Ø×ܽáºÃµÄÎĵµ
ÏÈ·´»ã±à,È»ºóÄÃ×ÅcpuµÄÖ¸ÁîÊÖ²á²éÿÌõÖ¸ÁîµÄʱ¼äÖÜÆÚ.

vcµ÷ÊÔµÄʱºò,¿´²»µ½Ã¿ÌõcÓï¾äÖ´ÐеÄʱ¼ä.
¾ÍËãÖªµÀ ҲûʲôÓÃ..

¾ÍËã»ã±à³öÀ´,Äã¶Ô×ÅÖ¸ÁîÖÜÆÚ Ò»¸öÒ»¸ö¼ÓÆðÀ´ ҲûÓÃ.
ÒòΪһ¶Î³ÌÐò »òÕßÒ»ÌõÖ¸ÁîÔÚ²»Í¬»úÆ÷Éϲ»Í¬Ê±¼äÖ´ÐеÄʱ¼äÊDz»Í¬µÄ.
ÕâÊÇÒòΪcpuÖ÷Ƶ²»ÊÇÖ»ÊÇÓÃÀ´Ö´ÐÐÄãµÄ³ÌÐò,
ËùÒÔ Ò»°ã²âʱ¼äЧÂʶ¼ÊÇÓÃGetTickCount()Ö®ÀàµÄº¯Êý...

µ±Ê± Èç¹ûÊǵ¥Æ¬»ú ǶÈëʽµÄ »òÕßÄãÄÃintel Ë«ºËcpu ²»ÅÜϵͳ Ö»Åܼòµ¥µÄÂã»ú³ÌÐò.
ÓÃÖ÷ƵËã»úÆ÷ÖÜÆÚ,È»ºóÀÛ¼ÓÊÇÕýÈ·µÄ

ls»¹ºöÂÔÁËÒ»µã,¸ßËÙ»º´æ£¬¶þ¼¶»º´æµÈµÈ ¶ÔÖ¸ÁîÖ´ÐеÄÓ°Ïì¡£
:D
µ÷ÓÃAPIÒ²»áÓ°Ï컺´æ...

×î׼ȷµÄÖ»ÄÜÊÇ¿´·´»ã±à£¬È»ºó²éÊֲᡣȻºóʵ¼Ê¿ª·¢ÖУ¬·¢ÏÖÀíÂÛÓëÏÖʵ²î¾àºÜ´ó¡£×îºóÖ»ºÃÈôúÂë¶ÎÔËÐиö1000´Î»ò¸ü¶à´Î£¬È»ºóȡƽ¾ùʱ¼ä¡£


²»Ì«ºÃ¾«È·È·¶¨£¬£¬µ«´ó¸ÅòËƲ»ÄÑ£¬£¬

Ò»¸öÖ¸ÁîÖÜÆÚÓÉ1¡«4¸ö»úÆ÷ÖÜÆÚ×é³É£¬ÒÀ¾ÝÖ¸Áͬ¶ø²»Í¬¡£
±ÈÈç³Ë·¨ºÍ³ý·¨Ö¸ÁîÐèÒª4¸ö»úÆ÷ÖÜÆÚ

C/C++ ÕâµÈ¸ß¼¶ÓïÑÔµÄÖ¸ÁÊǸøÈË¿´µÄ£¬ÌÖÂÛÿÌõÖ¸ÁîµÄÖ´ÐÐʱ¼äûÓÐÒâÒ壬ÒòΪµ±±àÒë³É»úÆ÷ÓïÑÔÒÔºóÒѾ­ºÍÔ­À´µÄ´úÂë´ó²»ÏàͬÁË¡£
µ±È»£¬ÊìÁ·ÒÔºó¿ÉÒÔ¿´µ½ C ´úÂëÖ±½ÓÏëµ½±àÒëÆ÷µÄʵÏÖ£¬È»ºó¸ù¾ÝÿÌõ»úÆ÷Ö¸ÁîµÄÖ´ÐÐʱ¼ä¹À¼ÆÐÔÄÜ£¬µ«ÊǶÔÓÚ´óÁ¿´úÂëµÄ¹¤³Ì£¬Ã»ÈËϲ»¶ÄÇô×ö£¬³ý·ÇÊÇÉÙÁ¿ÐèÒªÌرðÓÅ»¯µÄ²¿·Ö¡£
¼´Ê¹ÊÇÖ±½Ó¿´»ã±à´úÂ룬ҲÒѾ­²»¿ÉÄÜÓðÑÒ»ÌõÌõÖ¸ÁîµÄʱ¼ä¼ÓÆðÀ´ÕâÖÖ°ì·¨À´¹À¼Æʱ¼äÁË£¬ÒòΪÏÖÔÚµÄ CPU ÔçÒѲ»Êǵ±ÄêÄÇ˳ÐòÖ´Ðе


Ïà¹ØÎÊ´ð£º

ѧϰÌÖÂÛ C/C++ QQȺ - C/C++ / ·Ç¼¼ÊõÇø

QQȺ 29152388
ÓÑÇéUP

°ï¶¥

up

°ïup

up Ö§³Ö£¡

up jf

...ÄѵÀÓзÖ..?

up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£

Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ

¼ÓÁË¡£

¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......

cÊý¾ÝÀàÐÍÎÊÌ⣬¶®µÃÅóÓѽøÀ´¿´¿´£¬Ð»Ð»

ÓÃdev-c++±àÒëµÄ
ÊÇc primer plus µÄÀýÌâ
³ÌÐòÈçÏ£º
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    unsigned int un = 3000000000; /* 32λint ......

ÓÃvc6Ôõô±àÒëc³ÌÐò²ÅÄÜÉú³Édll

дÁ˸ö¼òµ¥µÄhello.c³ÌÐò£¬µ«±àÒëºóÉú³ÉµÄÊÇobjÎļþ£¬½¨¹¤³ÌµÄʱºòÑ¡ µÄÊÇwin32 ¶¯Ì¬Á´½Ó¿â¹¤³ÌÒѾ­¡£

hello.obj
jni.pch
vc60.idb
vc60.pdb

ÕâЩÊÇÉú³ÉµÄÎļþ¡£

hello.c
C/C++ co ......

¹ØÓÚthe c program µÄÒ»µÀÌâ!

±àд³ÌÐòdetab, ½«ÊäÈëÖеÄÖƱí·ûÌæ»»³ÉÊʵ±ÊýÄ¿µÄ¿Õ¸ñ£¬Ê¹¿Õ¸ñ³äÂúµ½ÏÂÒ»¸öÖƱí·ûÖÕÖ¹µÄµØ·½¡£¼ÙÉèÖƱí·ûÖÕֹλµÄλÖÃÊǹ̶¨µÄ£¬±ÈÈçÿ¸ônÁоͻá³öÏÖÒ»¸öÖƱí·ûÖÕֹλ¡£
£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­ ......

C\C++ÈçºÎ¼ÆË㺯ÊýµÄµ¼Êý

C\C++ÈçºÎ¼ÆË㺯ÊýµÄµ¼Êý,±¾ÈËÐÂÊÖ£¬Ïëд¸ö³ÌÐò£¬µ«ÊDz»ÖªµÀÈçºÎÏÂÊÖ£¬»¹Íû¸ßÊÖÖ¸µãÒ»¶þ£¬Ð»¹ý¡£
Õâ¸ö¡­¡­

¸úº¯ÊýµÄ¾ßÌåÐÎʽÓйذɣ¬ÄѵÀÄãÏë±à³ö¸ö¡°ÍòÄÜ¡±µÄÇ󵼺¯Êý£¿

°³ÉÏѧʱÏë¹ý×Ô¶¯ÍƵ¼¹«Ê½£¬ºóÀ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ