MCPcopy Create free account
hub / github.com/danslimmon/qsim / SetProcTimeGenerator

Method SetProcTimeGenerator

processor.go:40–42  ·  view source on GitHub ↗

SetProcTimeGenerator sets the function that will generate processing times for jobs. For example, if you wanted half of the jobs to take 10 ticks to process, and the other half to take 20 ticks, you could do this: ptg := func(j *Job) int { if rand.Float32() < 0.5 { return 10 } else { return 20 } }

(ptg func(j *Job) int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewProcessorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected