mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
runtime: nr_cpus()
This commit is contained in:
parent
a280e98d7f
commit
52c2fa44b8
6 changed files with 24 additions and 5 deletions
7
vlib/runtime/runtime_test.v
Normal file
7
vlib/runtime/runtime_test.v
Normal file
|
@ -0,0 +1,7 @@
|
|||
import runtime
|
||||
|
||||
fn test_nr_cpus() {
|
||||
nr_cpus := runtime.nr_cpus()
|
||||
println(nr_cpus)
|
||||
assert nr_cpus > 0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue