Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Re: How to control the time that a function takes to execute in a loop?

    No ideas without seeing the code. Here is how I thought it could be done:


    begin outer loop
    get file to process
    save starting time
    begin inner loop
    if (time used up) // duration =...
  2. Re: How to control the time that a function takes to execute in a loop?

    One way would be in the method to save the starting time using: System.currentTimeMillis() and then test the time used at selected points in the method/loop by getting the current time and computing...
Results 1 to 2 of 2