diff --git a/libs/iavl/nodedb_oec.go b/libs/iavl/nodedb_oec.go index 4b2dc75508..373fd50305 100644 --- a/libs/iavl/nodedb_oec.go +++ b/libs/iavl/nodedb_oec.go @@ -77,7 +77,7 @@ func (ndb *nodeDB) setHeightOrphansItem(version int64, rootHash []byte) { func (ndb *nodeDB) dbGet(k []byte) ([]byte, error) { ts := time.Now() defer func() { - ndb.addDBReadTime(time.Now().Sub(ts).Microseconds()) + ndb.addDBReadTime(time.Now().Sub(ts).Nanoseconds()) }() ndb.addDBReadCount() return ndb.db.Get(k)