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.
Type: Posts; User: silvercats
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.
yup. Neither got a working answer.
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...
public static void main(String[] args)
{
boolean t=false;
long cuTime = System.currentTimeMillis();
while(t==false)
{
...