added stopwatch mechanism using System.currentTimeMillis()