Implement time measurement utility 37/75037/2
authorMohammad Salehe <salehe@cs.toronto.edu>
Fri, 23 Nov 2018 17:07:27 +0000 (12:07 -0500)
committerMohammad Salehe <salehe@cs.toronto.edu>
Sat, 22 Dec 2018 19:40:38 +0000 (14:40 -0500)
commit964168542a4cfebf19414dba218ca9a5979f9be8
treee85fa4bb90fa286d63f96283119b9c62896a65be
parent9b709f3d33e23710aeae261198806d6a068c5a3b
Implement time measurement utility

Added a TimeMeasure interface as a utility class
to be able to measure running time of specific parts
of code. Usually, this will be used for benchmarking.

Implemented SamplerHistogramTimeMeasurement that uses
reservior sampling to calculate percentiles of large
amount of data.

Also updated maven pom.xml:
- update java version from 1.7 to 1.8 to be able to use java 8
- update guava to 27.0 to use Stats Percentiles
- update cassandra java plugin version to 3.6 to fix guava dependency problem

Change-Id: I168432ff2e6f5507fedc1678684dd96608703e5a
Issue-ID: MUSIC-148
Signed-off-by: Mohammad Salehe <salehe@cs.toronto.edu>
pom.xml
src/main/java/org/onap/music/util/NullTimeMeasure.java [new file with mode: 0644]
src/main/java/org/onap/music/util/SamplerHistogramTimeMeasure.java [new file with mode: 0644]
src/main/java/org/onap/music/util/TimeMeasure.java [new file with mode: 0644]
src/main/java/org/onap/music/util/TimeMeasureInstance.java [new file with mode: 0644]