Multiple small Scala utils for timing, evaluation, etc.
<dependency>
<groupId>org.sameersingh.utils</groupId>
<artifactId>${util.name}</artifactId>
<version>${utils.version}</version>
</dependency>
where util.name
is one of cmdopts
, misc
, coref
, termutils
, or timing
, while utils.version
is 0.1.1-SNAPSHOT
.
Allows maintenance of timing with simple features such as pause/resume and snapshots (think "laps" on stopwatches).
Currently contains the following:
Efficient representation of a double dimensional "array", i.e. map from (i,j)->T
Map of strings to ints, and reverse
Simple counter that can be disabled to that updates have no effect