I have a time variable
long time = (new Date()).getTime();
how would i perform a if statement on this? for example
if (time is over 5 minute)
system.out.println("time is up")
else
system.out.println("OK TIME")
Im looking to test the time to see that if it has been a minute since the variable was initialised then perform an if statement if the time has been over a certain amount.