I have a simple method like this:
public void foo(int runForHowLong) {
Motor.A.forward();
}
Now a want to be able to pass an argument to foo(), which sets a time limit for how long foo() will run. Like if I send foo(2), it runs for 2 seconds.