.. java:import:: java.io Serializable .. java:import:: java.util ArrayList .. java:import:: java.util Collection .. java:import:: java.util Date .. java:import:: java.util HashMap .. java:import:: java.util List .. java:import:: java.util Locale .. java:import:: java.util Map .. java:import:: java.util Map.Entry .. java:import:: org.apache.logging.log4j LogManager .. java:import:: org.apache.logging.log4j Logger .. java:import:: org.caosdb.server CaosDBServer .. java:import:: org.caosdb.server ServerProperties .. java:import:: org.caosdb.server.utils CronJob .. java:import:: org.caosdb.server.utils Info .. java:import:: org.caosdb.server.utils ServerStat .. java:import:: org.jdom2 Element Measurement =========== .. java:package:: org.caosdb.server.database.misc :noindex: .. java:type:: class Measurement implements Serializable The measurement of e.g. a certain action, possibly over multiple runs. A Measurement keeps track of how often the action was measured, and what the total and averaged spent time is. One Measurement object knows nothing about other Measurement objects. Constructors ------------ Measurement ^^^^^^^^^^^ .. java:constructor:: public Measurement(String name, long time, int count) :outertype: Measurement Methods ------- add ^^^ .. java:method:: public void add(long time, int count) :outertype: Measurement getAccTime ^^^^^^^^^^ .. java:method:: public long getAccTime() :outertype: Measurement getAvg ^^^^^^ .. java:method:: public double getAvg() :outertype: Measurement getCount ^^^^^^^^ .. java:method:: public int getCount() :outertype: Measurement getName ^^^^^^^ .. java:method:: public String getName() :outertype: Measurement toStringBuilder ^^^^^^^^^^^^^^^ .. java:method:: public StringBuilder toStringBuilder() :outertype: Measurement