Results 1 to 2 of 2

Thread: เวลา ( TIME ) ใน JAVA

  1. #1
    Senior Member
    Join Date
    Sep 2005
    Location
    Thailand
    Posts
    121


    Thumbs up

    รบกวนสอบถามเกี่ยวกับการจับเวลา การประมวลผล ( run) ของ java หน่อยอ่ะคับ

    คือต้องการตรวจสอบว่า script ไหน run ได้เร็วกว่ากันประมาณเนี่ยอ่ะคับ

  2. #2
    Junior Member
    Join Date
    Feb 2007
    Posts
    5


    คงต้องนำเวลามาลบกันเองนะครับ โดยผมจะแนะนำ คำสั่งที่ใช้ get เวลาให้
    System.currentTimeMillis(); มันจะ return ค่าเป็น long นะครับ
    ให้เอาค่าที่พิมพ์ตอนเริ่มต้นมาลบกัน จะได้เวลาที่ใช้ไปครับ โดยหน่วยที่ได้จะเป็น millisecond ครับ

Similar Threads

  1. Replies: 0
    Last Post: 03-01-2008, 05:18 PM
  2. Replies: 0
    Last Post: 07-09-2007, 10:14 AM
  3. bootskin เวลา เข้า windows+48แบบ
    By jasda in forum Window Application
    Replies: 0
    Last Post: 19-07-2007, 01:29 PM
  4. วัน เดือน ปี เวลา
    By maxdezign in forum Flash & Multimedia
    Replies: 0
    Last Post: 18-04-2004, 11:25 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •