From bf2cabab17c1cb2185fa2286e4dd3c31306dec79 Mon Sep 17 00:00:00 2001 From: CharlieTap Date: Sun, 6 Nov 2022 17:33:26 +0000 Subject: [PATCH] added to string function --- src/commonMain/kotlin/com/tap/hlc/HybridLogicalClock.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commonMain/kotlin/com/tap/hlc/HybridLogicalClock.kt b/src/commonMain/kotlin/com/tap/hlc/HybridLogicalClock.kt index 476d0e0..1b9b864 100644 --- a/src/commonMain/kotlin/com/tap/hlc/HybridLogicalClock.kt +++ b/src/commonMain/kotlin/com/tap/hlc/HybridLogicalClock.kt @@ -113,4 +113,9 @@ data class HybridLogicalClock( timestamp.epochMillis.compareTo(other.timestamp.epochMillis) } } + + override fun toString(): String { + return encodeToString(this) + } + }