code: public long getTime(String name) {
          Long res = stats.get(name);
          return (res == null) ? -1 : res.longValue();
      }
docs: Gets a time for a performance measurement. If no measurement with the
  specified name exists then it returns -1.
  
  @param name
  @return