diff --git a/cmix/localTime.go b/cmix/localTime.go
index 8e990ac9e455227ad392b1a1ef09d969d73d3b30..3b16629bba4ccd3336098a3f01cffd890a161f99 100644
--- a/cmix/localTime.go
+++ b/cmix/localTime.go
@@ -1,10 +1,19 @@
+////////////////////////////////////////////////////////////////////////////////
+// Copyright © 2022 xx foundation                                             //
+//                                                                            //
+// Use of this source code is governed by a license that can be found in the  //
+// LICENSE file.                                                              //
+////////////////////////////////////////////////////////////////////////////////
+
 package cmix
 
 import "time"
 
+// describes a local time object which gets time
+// from the local clock in milliseconds
 type localTime struct{}
 
 func (localTime) NowMs() int64 {
 	t := time.Now()
-	return t.UnixNano() / int64(time.Millisecond)
+	return (t.UnixNano() + int64(time.Millisecond)/2) / int64(time.Millisecond)
 }