mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 06:26:34 +08:00
使用KV存储实现指标统计
This commit is contained in:
@@ -26,3 +26,7 @@ func (this *tracker) End() {
|
||||
func (this *tracker) Begin(subLabel string) *tracker {
|
||||
return Begin(this.label + ":" + subLabel)
|
||||
}
|
||||
|
||||
func (this *tracker) Add(duration time.Duration) {
|
||||
this.startTime = this.startTime.Add(-duration)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user