0

does any knows how to set a delay in japple - timmer? before running test method i want to set one sec dalay.

public void test()
{
    //some code here
}

i tried this but didnt work.

public void test()
{
    int i = 10000;
    while(i >= 0){
        i--;
    }

    //some code here
}

also tried:

public void test()
    {
     timerClass.setDelay(1000);
        int i = 10000;
        while(i >= 0){
            i--;
        }

        //some code here
    }


                                    }

Edited by game06

3
Contributors
2
Replies
13
Views
3 Years
Discussion Span
Last Post by Dani
0

Modern systems can decrement a 10K value in about 10 nanoseconds. This is not the approach you want to take. There are system timers that will handle timers in nanosecond scales quite nicely. Is this a Java application?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.