- 3,746
On a more serious note from my last attempt (which I now have a revision for so it's not completely a timer
), how about dropping a marble into a plastic tube containing a very viscous liquid (something like syrup or highly concentrated sugar water)? You could alter the viscosity of the liquid, depth of liquid and/or size of marble to control drop rate...
Oh, and I can't stop myself, so here's my revision:
Oh, and I can't stop myself, so here's my revision:
Code:
import java.util.Date;
public class OneMinute
{
public static void main (String [] args)
{
Date currentDate = new Date();
currentDate.setMinutes(59);
Date targetDate = new Date();
if(currentDate.getMinutes() == 59)
{
targetDate.setHours(currentDate.getHours()+1);
targetDate.setMinutes(0);
}
else
targetDate.setMinutes(targetDate.getMinutes()+1);
while(currentDate.compareTo(targetDate) != 1)
{
currentDate = new Date();
}
}
}