Results 1 to 2 of 2
  1. #1
    mew
    mew is offline Member
    Join Date
    Nov 2007
    Posts
    70
    Rep Power
    0

    Default currentTime in nano sec

    Following works perfectly fine:

    Java Code:
    System.out.println(System.currentTimeMillis());
    I want to get current system time in nano seconds. Please tell me how to do that?

    - mew mew mew

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    Java Code:
    System.out.println(System.nanoTime());
    Google should have answered you before me .. :)
    dont worry newbie, we got you covered.

Similar Threads

  1. measuring time in nano seconds
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-06-2007, 01:11 PM

Posting Permissions

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