How fast does a while loop executes

hi how fast does a while loop actually checks its condition??
depending on the processor speed??
anyone??

Sorry I write that wrong,
heres how it should be:
public class whileLoop{
int time, time2;
time = System.currentTimeMillis();
public timer()
while //watever//{
time2 = System.currentTimeMillis();
time2 = time2 - time;
system.out.println(time);
class use{
whileLoop a = new whileLoop();
public void main(String args[]){
a.timer();
}

Similar Messages

  • How to stop a while loop in LabVIEW from a C program

    How to stop  a while loop in LabVIEW from a C code

    hi
    I think by creating dll you can stop the while loop from your C program.For that you just create dll (Dynamic Link Library) for the VI which has that while loop.
         Anyway can u please explain ur requirement clearly.

  • How to stop a while loop after certain time using Elapsed time vi

    how to stop a while loop after certain time using Elapsed time vi.

    Hi Frankie,
    Just place the Elapsed Time VI inside the WHILE loop, and wire the 'Time Has Elapsed' output to the conditional terminal in the lower right corner (which should be set to 'stop if true' by default).
    In the future, please post your LabVIEW questions to the LabVIEW Forum.  You have a much better chance of getting your questions answered sooner, and those answers can then help others who are searching the LabVIEW forums.  Thanks!
    Justin M
    National Instruments

  • How fast does my interent connection have to be for Apple TV

    How fast does my internet have to be for Apple TV to work? I currently have 20 bps

    On edit -- never mind - you just got the answer from someone!
    I don't know the answer Russ, but you may want to correct the title of your post as it says Facebook and not FaceTime -- someone who has information about the answer may not open the post to see the actual question. The title currently is:
    how fast does the internet connection need to be for Facebook

  • How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    Jeannot7 wrote:
    I'm interested in seeing who gets the D7100 support first? Apple or Adobe!! I will go with the one that gets it out first.
    FWIW,
    Adobe keeps a quarterly release schedule for RAW updates. The current Lightroom 4.4 RC expires on 5/31/2013 which typically is an indication that the official release will be close to that date. According to the current list of new supported cameras, the Nikon D7100 is not slated to be supported (but that could change on release).
    http://labs.adobe.com/technologies/lightroom4-4/?tabID=details#tabTop
    The most likely time frame for Adobe support of the D7100 will be sometime in August or September 2013 (although there will probably be a Lightroom 4.5 RC available prior to that for testing purposes).

  • IPad notification...stating iCloud could no longer store info.?? how fast does this fill up? And, what should I store /or not store...to keep this from happening?

    iPad notification...stating iCloud could no longer store info.?? how fast does this fill up? And, what should I store /or not store...to keep this from happening?

    Depends on what your storing.  This article will help you see what's using your storage so you can make some decisions on how to reduce it: http://support.apple.com/kb/ht4847.

  • How fast does your Windows boot up?

    Out of curiosity, how fast does your Windows bootup?
    I have Windows XP, and the logo screen displays for about 11.06 seconds. How about yours, and what can be done to make Windows work faster?

    Quote
    Originally posted by Flam3h
    breenemeister..
    I Think spoolsv.exe is Printer Spooler.. you can set it to manual in the Services..
    Right click on My Computer > Manage > at the bottom on the left double click on Services + Applications > Services then double click on Print Spooler and and select startup type Manual.
    Also more fast bootup stuff... Search google for XP SP2 Beta... install that > ive found it great so far.. MS has got it so it disables a load of unneeded services so PC will boot / shut down quicker.. Remember it is only a BETA atm.. so use at your own risk.. ive had no probs tho.. pc seems quicker
    Cheers.
    Jon
    Thanks Flam3h, it most definitely is the printer spooler.  The problem is that if you set it to manual, your printer will not work.  When you go to print something, Windows tells you that you must first install a printer.  This is the only service I've found where the manual setting will not work.  You either have to set it as automatic or go into services and start it each time you want to print.  I'm just wanting to know if anyone else has this problem and knows of a work around to allow the manual setting to work.
    I don't know if I'm ready to try service pack 2 yet.  If I do, I will definitely make a ghost first

  • How do I set while loop priority in an RT Field Point application?

    I have a vi that I want to run in an FP2010 that contains 2 while loops, one must be Time Critical priority and the other Normal or lower priority.  I will be using RT FIFO to transfer data between the two loops. The Normal loop will be used for communication with a Host PC.
    How can I set the priorities of these 2 loops?
    Can I run 2 separate vi's in the FP with each set to a different priority And transfer data between the two with RT FIFO? How?
    I am using V6.1 and the customer does not want to spend on upgrading.
    Thanks,
    Chris

    Chris,
    You are on the right track using two separate VIs with different priorities and using RT FIFOs to communicate between the two.  Please see the following tutorial and the related links, one link of which is an example with a zip file containing the RT FIFO VIs for LabVIEW 6.1.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • How to stop a while loop when using tab control

    How do you use a tab contol to stop what is happening on one tab when you switch to another tab?  In the test example I attached, I have a while loop nested inside a case structure controlled by the tab control.  When I tab to page two the elapsed timer starts but when I switch to another tab it does not stop.  I can't come up with an easy way to stop or exit the while loop when I change tabs. 
    Thank you
    Danny
    Attachments:
    tab control.vi ‏24 KB

    I played with it a little more and came up with this fix.  This fixes it but is not tied to the changing tabs as I was looking for.  Is this just too many nested loops and a bad idea?
    Danny
    Attachments:
    tab control fix maybe.vi ‏26 KB

  • How fast does a macbook battery usualy drain?

    I'm just curious how fast is typical for a macbook battery to drain each time you use it. I got a replacement batter b/c my old one was a dud. This one has drained 10% (100% to 90%) in about 35-40 minutes (constant use). I'm not saying that's abnormal, I'm just curious what normal is.
    Gracias!
    P.S. Screen is turned on medium light and bluetooth is off (however, wireless is on).

    That sounds good. If your battery drains like that you could get 4 or 5 Hours out of it. If you take good care of it you should have no problems. It is OK to leave your battery hooked to the charger most of the time. The only time I unhook mine from the charger is when I calibrate. Have you calibrated your batteryyet? You should calibrate every two months or so to keep the battery fully functioning. If you use your MacBook infrequently, it’s best to re-calibrate the battery at least once a month.
    The following links have good information about the MacBook and the care of it's battery.
    Tips for maximizing your Notebook battery charge
    MacBook reduces processor speed when battery is removed while operating from an A/C adaptor
    Apple portable computer's battery does not show a full charge in Mac OS X
    Look here and here for some good tips about battery care.
    MacBook: How to remove or install the battery
    Determining Battery Cycle Count
    Use and cleaning of MagSafe power connector

  • How to stop a while loop with long delay

    Hi everyone,
    I am building a simple program for turning on and off a single Bit.  The task is to turn ON the Bit for a period length T1, and OFF the Bit for a period length T2. T1 is normally different from T2, and can be controlled  by users. 
    Since T1 and T2 can be variable, they sometimes can be very long.
    If I use a Wait function inside a While loop, it needs long delay to be able to Stop the Main program.
    The same situation happens when I use Timed loop.
    Can anyone suggest me how to do this task?
    Thanks a lot. 
    Message Edited by tatuan on 04-12-2010 12:56 AM

    Here's another possibility using OpenG Wait ms:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to stop a while loop of event structure from a main vi

    Hello;
    sorry for my english
    I have to stop a subvi from my main vi, the subvi contains a while loop and an event structure so I need to stop this loop while directly from my main vi I have tried global variable but it did not work
    any help please or example !!!   
    Solved!
    Go to Solution.
    Attachments:
    stop a while loop and event structure from main vi.png ‏16 KB

    IYED wrote:
    Hello;
    sorry for my english
    I have to stop a subvi from my main vi, the subvi contains a while loop and an event structure so I need to stop this loop while directly from my main vi I have tried global variable but it did not work
    any help please or example !!!   
    If this is an example of how your code looks, I'd clean it up before the developer who has to work on it next hits you over the head with his LabVIEW Style Book. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to stop a while loop which contains a timed loop

    Hi,
    I'm a new hand to labview, and I'm using labviw 7.1, NOT 8.x.  I'm trying to do a measurement, in which the flow would look like the attached file (I have stipped all hardware related components to make it easy to read).  My questions are:
    1. In Loop 3, when the comparison (x>20.85) is true, Loop1, Loop2 and Loop3 are stopped, why it won't quit the while loop (I have wired it to  while loop stop)?
    2. When it is running, I click on stop button, why it won't stop?
    Thanks!
    Attachments:
    SyncTimedLoop32.vi ‏228 KB

    hwm wrote:
    2. When it is running, I click on stop button, why it won't stop?
    The stop button is read outside of the inner while loops.  So the inner while loops will continue to run until their stop conditions are met.
    hwm wrote:
    1. In Loop 3, when the comparison (x>20.85) is true, Loop1, Loop2 and Loop3 are stopped, why it won't quit the while loop (I have wired it to  while loop stop)?
    It seemed to me like it would, but sometimes it seemed like I had to set change the numeric value one more time before it would.  You have a very odd structure there by placing the event structre inside the while loop with the other loops.  I think you may be running into issues where events are getting queued up in the event structure, or race conditions between when the event structure might execute relative to the other loops.  It is all very odd and difficult to predict all the ways these structures might interact and relative timing.  Usually event structures would belong in their own parallel while loop.  I think you need to rethink exactly what you are trying to do here.  It probably isn't event necessary to use the stop timed structure functions.  A local variable or a notified to pass the "Stop status" from loop 3 to the other loops (or the separate event structure loop to the other 3) would probably be better.

  • How to EXIT the while loop in Event response section?

    I'm writing a program to grab image using a NI card. The application uses the Event structure. When the GRAB button was pressed, it snaps image continually by putting the SNAP function in a while loop. Is there some way to exit the while loop?(Note :The while loop was put in the GRAB IMAGE event response section.)

    edit this event-case AND uncheck "lock front panel until the event case for this event completes".
    BTW, your thanks should go to Ankita, <a href='http://forums.ni.com/ni/board/message?board.id=170&message.id=151282'>here</a>
    cheers! 
    Message Edited by Dynamik on 11-13-2005 01:26 AM
    Message Edited by Dynamik on 11-13-2005 01:38 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!
    Attachments:
    untitled.GIF ‏20 KB

  • How fast does find my phone track

    How fast or often will i see where it is?  Can i watch it move to follow it track?

    There is no set time, apparently, because sometimes it can take hours for the data to appear. Find My Phone only saves locations for 24 hours then replaces them with the next 24 hours, etc.

Maybe you are looking for

  • Can't install a downloaded MX

    I had to erase and do a clean install on my Mac OS10.4.11. Can't find my original CD of Freehand MX to install it again. Tried to order it from Customer service but it will take too long to get it here. I've got to finish a design job. So I downloade

  • Session getting lost between two applications deployed on two WLS versions.

    Hi, Jdev version 11.1.1.5. I am facing an issue of session being getting lost. Let me explain the scenario. Our client has a legacy application(xyz) running on Web logic server(10.3.3). We have developed an application which was deployed on Web logic

  • I updated the iphone 3G and it didnt finish the update

    I updated my iPhone ecause i thought it would be the right thing to do but it didn't finish the update and instead it said ERROR 21, what is this. it won't let me restore me iphone, it just shows the little apple logo on the screen when i click resto

  • Mobile Synch is using up all my memory - can I safely delete some of the files?

    I keep getting "start-up folder is full" errors when trying to run applications (such as Minecraft).  My hard disk reports only about 500MB free space left.  When I review my files, I see many gigabyets in the application data folder under "Mobile Sy

  • Create new domain but cannot login

    I'm using Directory Server 5.2, Messaging Server 5.2, IDA 45 I installed Messaging Server and I'm using domain itc.my, then I created several accounts under the new domain and it worked fine..I can login, sent and receive emails..then I decided to cr