hansen19498 Posted May 19, 2016 Share Posted May 19, 2016 I need a judge than 5 seconds code,, for example, (which is wrong) t1=System.currentTimeMillis(); //bot doing t2=System.currentTimeMillis(); if ((t2-t1)>5){//doing other} help me,fix it thx Quote Link to comment Share on other sites More sharing options...
IHB Posted May 19, 2016 Share Posted May 19, 2016 instead of 5 use 5000 1 Quote Link to comment Share on other sites More sharing options...
Acerd Posted May 19, 2016 Share Posted May 19, 2016 what? Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 19, 2016 Share Posted May 19, 2016 those are milliseconds fren 2 Quote Link to comment Share on other sites More sharing options...
Vilius Posted May 19, 2016 Share Posted May 19, 2016 Oh its that guy lmao. 1second is 1000ms which you are using right now Quote Link to comment Share on other sites More sharing options...
hansen19498 Posted May 19, 2016 Author Share Posted May 19, 2016 thx Quote Link to comment Share on other sites More sharing options...