Search:

Type: Posts; User: silvercats

Search: Search took 0.10 seconds.

  1. Re: How to perform an action only if a certain amount of time has passed

    What I want is,

    int x=3;

    if (x==3 'during past 3 seconds')
    {
    //perform action
    }
    this should not disturb other actions of the program for this 3 secs.
  2. Re: How to perform an action only if a certain amount of time has passed

    yup. Neither got a working answer.
  3. Re: How to perform an action only if a certain amount of time has passed

    Here is what I want to achieve.

    A class gets a rapidly changing integer from another class. As it changes so fast, I wanted to perform an action only when this number is stabilized. Like if the...
  4. How to perform an action only if a certain amount of time has passed

    public static void main(String[] args)
    {
    boolean t=false;

    long cuTime = System.currentTimeMillis();

    while(t==false)
    {
    ...
Results 1 to 4 of 4