public void addGestureTrace(String id, ArrayList<float[]> trace, boolean addToDB) { /* * reads a gesture id and a trace and then adds it to * gesture hashmap and optionally saves it to the DB */ Gesture g = new Gesture(); g.databaseID = -1; /* not known to database yet */ g.gestureTrace = trace; g.gestureID = id; g.gestureAdded = System.currentTimeMillis(); this.addGesture(id, g, addToDB); }
void run() throws Exception { long s = System.currentTimeMillis(); solve(); out.flush(); pr(System.currentTimeMillis() - s + "ms"); }