JTimerCommand (3)
String mode = argv[1].toString(); if ( mode.equals("start") ) { GregorianCalendar cal = new GregorianCalendar(); startTime = cal.getTime().getTime(); }
- Convert second argument from TclObject to String
- Rest of code is the same as for Jtimer
- Warning: don’t use mode == "start"