Hi Saptarshi, Saptarshi Purkayastha <[EMAIL PROTECTED]> wrote: > > travelTime = startTime - > ((int)System.currentTimeMillis());
travelTime is negative, System.currentTimeMillis() increases over time. So you have to turn the subtraction around. > LCD.showNumber(travelTime); Anything that isn't in the range 0...9999 is shown as 9999, so the negative travel time is always displayed as 9999. Please send questions to the list, on the one hand this will increase your chances of a rapid reply, and on the other hand other people may also learn something from it. Greetings Jürgen -- Jürgen Stuber <[EMAIL PROTECTED]> http://www.jstuber.net/ gnupg key fingerprint = 2767 CA3C 5680 58BA 9A91 23D9 BED6 9A7A AF9E 68B4 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Lejos-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lejos-discussion
