Results 1 to 2 of 2

Thread: A Timing loop

  1. #1
    davidfla90 is offline Member
    Join Date
    Nov 2011
    Posts
    2
    Rep Power
    0

    Default A Timing loop

    Hey,

    Can you run a loop which increments every turn by some time until it has reached a session time?

    Something like this:


    long SessionTime=30000; //milliseconds

    for (long currentTime=0; i<=SessionTime)

    Set a pin high;
    Sleep.(1000);
    Set the pin low;

    currentTime = currentTime+1000;

  2. #2
    christopherx is offline Member
    Join Date
    Oct 2011
    Posts
    92
    Rep Power
    0

    Default Re: A Timing loop

    This implementation requires guess work, when it comes to loops mate. you should look at the "do" namespace. Might help you a little bit.

Similar Threads

  1. Replies: 1
    Last Post: 10-01-2011, 03:12 AM
  2. thumbnail display timing
    By gatensbury in forum AWT / Swing
    Replies: 14
    Last Post: 07-30-2011, 01:44 AM
  3. Chat GUI timing problem
    By waysgoose in forum Networking
    Replies: 2
    Last Post: 09-09-2010, 12:28 AM
  4. URLConnection not timing out as expected
    By StephenS in forum Networking
    Replies: 2
    Last Post: 04-02-2010, 04:10 AM
  5. Timing array loop performance
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-14-2008, 09:43 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
  •