public static long timePassed(String name) { Profile p = profiles.get(name); if (p != null) { return p.timePassed(); } return 0; }