mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sync: implement pool.work_on_items to process a list of items in parallel
This commit is contained in:

committed by
GitHub

parent
136aa763a3
commit
b0ece3a9d8
@ -74,6 +74,13 @@ pub fn new_benchmark() Benchmark {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_benchmark_pointer() &Benchmark {
|
||||
return &Benchmark{
|
||||
bench_start_time: benchmark.now()
|
||||
verbose: true
|
||||
}
|
||||
}
|
||||
|
||||
pub fn (b mut Benchmark) set_total_expected_steps(n int) {
|
||||
b.nexpected_steps = n
|
||||
}
|
||||
|
Reference in New Issue
Block a user