Make NanosecondPrecisionSystemTimeProvider monotonic

This commit is contained in:
leventov
2015-12-27 01:53:57 +03:00
parent 2928d18d11
commit 123fb177c6
2 changed files with 12 additions and 2 deletions
@@ -396,7 +396,7 @@ public interface ChronicleHashBuilder<K, H extends ChronicleHash<K, ?, ?, ?>,
* replication consensus protocol (conflicting data updates resolution).
*
* <p>Default time provider uses system time ({@link System#currentTimeMillis()}) in
* <i>nanosecond</i> precision.
* <i>nanosecond</i> precision, also it returns non-decreasing time.
*
* @param timeProvider a new time provider for replication needs
* @return this builder back