DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2007

    Looking for an Answer.

    Hello, i am currently an art student who is looking to use java for an installation project. I was hoping that someone could send me in the right direction for either source code or help. I do have knowledge in Java however the project i believe is above my skill.

    For the java i need be able to start the program use a timer to count how long someone has been there. Then once they are finished i need a print out of an array of things that happened since they were there. For example if a baby is born every 5 seconds, and the person used the program for 15 seconds, then i need to print out to them that 3 babies were born. Any help would be appreciated thank you!

  2. #2
    Join Date
    Jan 2006

    More info required

    You need to provide more requirements like

    Is it going to be a web based or a simple stand alone java program. ALeterntively Swing GUI based etc.

    -- you can use
      long time1 = System.currentTimeMillis();
      long time2 = System.currentTimeMillis();
       long timeInTheSytem = t2 -t1

Similar Threads

  1. Replies: 1
    Last Post: 09-20-2006, 01:40 AM
  2. Replies: 6
    Last Post: 12-06-2005, 10:32 AM
  3. Re: Dynamic Server controls question -- Answer
    By Keith Summers in forum ASP.NET
    Replies: 0
    Last Post: 06-12-2003, 07:57 AM
  4. Re: I'm amazed(The answer)
    By Blob in forum .NET
    Replies: 11
    Last Post: 10-25-2002, 08:20 PM
  5. Exchange 2000 Unattended Answer File
    By Wei Ming Wong in forum Enterprise
    Replies: 0
    Last Post: 06-07-2001, 06:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center