MCPcopy Index your code
hub / github.com/php/frankenphp / WaitTime

Method WaitTime

internal/state/state.go:211–217  ·  view source on GitHub ↗

WaitTime returns the time since the thread is waiting in a stable state in ms

()

Source from the content-addressed store, hash-verified

209
210// WaitTime returns the time since the thread is waiting in a stable state in ms
211func (ts *ThreadState) WaitTime() int64 {
212 since := ts.waitingSince.Load()
213 if since == 0 {
214 return 0
215 }
216 return time.Now().UnixMilli() - since
217}
218
219func (ts *ThreadState) SetWaitTime(t time.Time) {
220 ts.waitingSince.Store(t.UnixMilli())

Callers 2

threadDebugStateFunction · 0.80
deactivateThreadsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected