MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetVersionTs

Method GetVersionTs

pkg/utilds/versionts.go:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13func (v *VersionTs) GetVersionTs() int64 {
14 v.lock.Lock()
15 defer v.lock.Unlock()
16
17 nowMs := time.Now().UnixMilli()
18 if nowMs <= v.lastVersion {
19 v.lastVersion++
20 return v.lastVersion
21 }
22 v.lastVersion = nowMs
23 return v.lastVersion
24}

Callers 4

GetBlockJobStatusFunction · 0.80
GetRuntimeStatusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected