Skip to content

Commit 90510e5

Browse files
committed
sql: timeutil.Now -> crtime.NowMono conversion
Epic: none Release note: None
1 parent 9a6ff71 commit 90510e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/sql/conn_executor_exec.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,13 +4201,12 @@ func (ex *connExecutor) recordTransactionFinish(
42014201
txnStart crtime.Mono,
42024202
txnErr error,
42034203
) error {
4204-
recordingStart := timeutil.Now()
4204+
recordingStart := crtime.NowMono()
42054205
defer func() {
4206-
recordingOverhead := timeutil.Since(recordingStart)
42074206
ex.server.
42084207
ServerMetrics.
42094208
StatsMetrics.
4210-
SQLTxnStatsCollectionOverhead.RecordValue(recordingOverhead.Nanoseconds())
4209+
SQLTxnStatsCollectionOverhead.RecordValue(recordingStart.Elapsed().Nanoseconds())
42114210
}()
42124211

42134212
txnEnd := timeutil.Now()

0 commit comments

Comments
 (0)