MCPcopy Create free account
hub / github.com/actiontech/dtle / ElapsedRowCopyTime

Method ElapsedRowCopyTime

driver/common/taskconfig.go:134–144  ·  view source on GitHub ↗

ElapsedRowCopyTime returns time since starting to copy chunks of rows

()

Source from the content-addressed store, hash-verified

132
133// ElapsedRowCopyTime returns time since starting to copy chunks of rows
134func (m *MySQLDriverConfig) ElapsedRowCopyTime() time.Duration {
135 if m.RowCopyStartTime.IsZero() {
136 // Row copy hasn't started yet
137 return 0
138 }
139
140 if m.RowCopyEndTime.IsZero() {
141 return time.Since(m.RowCopyStartTime)
142 }
143 return m.RowCopyEndTime.Sub(m.RowCopyStartTime)
144}
145
146type KafkaConfig struct {
147 Brokers []string

Callers 3

StatsMethod · 0.80
StatsMethod · 0.80
StatsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected