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

javaÏÂÈçºÎ½øÐмÆʱ£¿

long startTime=System.currentTimeMillis();
// do something
long endTime=System.currentTimeMillis();
long spentTime=(endTime-startTime)/1000;

Èç¹ûÎÒÔÚ"do somethings"ÖÐÐÞ¸ÄÁËϵͳʱ¼ä£¬½ÓÏÂÀ´ÓÖÈçºÎ¼Æʱ£¬»ñÈ¡ÕýÈ·µÄspentTime¡£

Ëƺõ¿ÉÒÔͨ¹ý»ñÈ¡CPUÔËÐеÄʱ¼äÀ´½øÐУ¬µ«ÊÇÈçºÎ»ñÈ¡£¿
J2MEÎÞ·¨ÐÞ¸Äϵͳʱ¼äµÄ

ßÀ¡£¡£¡£¡£ÎÒÊÇÔÚandroidϵͳÏ£¬ÏµÍ³Ê±¼ä¿ÉÒÔ±»ÐÞ¸ÄÁË¡£

ÁíÍâÐÞ¸Äϵͳʱ¼äÒ²²»Ò»¶¨ÊÇͨ¹ýAPI°¡£¬Ò²ÐíÊÇÔÚ´ËÆڼ䣬ÈËΪÊÖ¶¯µÄÐÞ¸ÄÁËϵͳʱ¼ä¡£

JAVA²»ÄÜÖ±½Óµ÷ÓõײãµÄ¶«Î÷£¬Òªµ÷µÄ»°£¬Ó¦¸Ãͨ¹ýϵͳ½Ó¿ÚÁË

²»Òª³ÁÁË¡£¡£¡£¡£¡£

Ö»ÓлñÈ¡ÐÂÐ޸ĵÄʱ¼äÁË¡¢¡¢¡¢

°¥£¬SystemClockÀà¿ÉÒÔÃëɱ´ËÎÊÌâ


Ïà¹ØÎÊ´ð£º

java±àÒëÔËÐÐc³ÌÐò£¬²¢ÏÔʾ½á¹û

ͨ¹ýjava³ÌÐò£¬ÏȱàÒëc³ÌÐò£¬Èç³öÏÖ´íÎó£¬ÌáʾC³ÌÐòÖеĴíÎ󣬱àÒë³É¹¦¾ÍÔËÐУ¬ÏÔʾCµÄÔËÐнá¹û£¬×îºÃ°ÑCµÄÔËÐÐʱ¼äºÍÄÚ´æµÈ¶¼ÏÔʾ³öÀ´

¸÷λ´ó¸ç´ó½ã°ï°ï棬СµÜ¸Ð¼¤²»¾¡£¡
ÓÃjavaµÄ½ø³ÌÀàÊÔÊÔ
ÎÒ¸øÄãת ......

jspѧϰǰҪÁ˽âÄÇЩ֪ʶ£¿£¨Ñ§ÁËjavaÁË£©

jspѧϰǰҪÁ˽âÄÇЩ֪ʶ£¿Ñ§ÁËjavaÁË¡£²»ÖªµÀ»¹ÒªÑ§Ï°Ð©Ê²Ã´ÖªÊ¶²Å¿ÉÒԺܺõÄѧϰjsp
HTML¡¢JavaScript

Ö±½Óѧ¾Í¿ÉÒÔÁË£¬Óöµ½²»»á¾ÍÏÖѧ¾ÍÐС£

Html  css servlet

È¥Á˽âä¯ÀÀÆ÷Óëweb·þÎñÆ÷µÄ¼òµ¥½» ......

´ó¼ÒÈÏΪeffective java ÖÐÎÄ°æÔõôÑù?

Ç°¼¸ÌìÐËÖ°»È»µØÂòÁ˱¾ÖÐÎÄ°æµÄÀ´¿´,½á¹û¿´×Å¿´×ž;õµÃ×Ô¼ºÓÐÁ½·½ÃæµÄǷȱ:

1. ÊéÉϽ²µÄ·Ç³£ºÃ,ºÃ¶àÊÇƽʱ±à³ÌûÓÐ×¢Òâµ½µÄ...ÕâÊÇÒ»·½ÃæµÄǷȱ
2. ÁíÒ»·½ÃæµÄǷȱ¾ÍÊÇÎÒµÄÓïÎÄÀí½âÄÜÁ¦ºÃÏñÓÐÎÊÌâ,ÎÒÀÏÊ ......

javaÈí¼þ¼ûÏ°¸Úλ

¸Úλ˵Ã÷
1¡¢¸ù¾ÝÉêÇë²Î¼ÓÕß²»Í¬µÄjava¿ª·¢»ù´¡£¬Ñ¡Ôñ1-3¸öÔµÄjava¿ª·¢ÊµÏ°¡£
2¡¢¼ûÏ°ÄÚÈÝΪjavaEE¼¼Êõʵѵ£¬Íê³É10000ÐдúÂëÁ¿¡£
  ¸½¼ÓÄÚÈÝÈ«ÆóÒµ»·¾³µÄjava¿ª·¢ÊµÕ½ÏîÄ¿£¬Éæ¼°web£¬½ðÈÚ£¬Í¨ÐÅÐÐÒ ......

javaÔõôģÄâµÇ½ÍøÕ¾£¿¾ÍÒªÒ»¸öµÇ½¹ý³Ì

×îºÃ´øÀý×Ó¡£Ð»Ð»¡£
Óà httpclient°ü ¿ÉÒÔ ºÜÈÝÒ×ʵÏÖ¡£¡£¡£

HttpClient httpclient = new HttpClient();
GetMethod httpget = new GetMethod("https://www.verisign.com/");
httpclient.execu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ