ncpu
Version, currently master branch1 version
- master branchlatestMay 29, 2017
github.com/tbrand/ncpu.cr
Get number of cpus in Crystal
1 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
ncpu:
github: tbrand/ncpu.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.22.0- License
- MIT
- Author
- taicsuzu
Dependencies
This version declares no dependencies.
README
ncpu
This library returns number of cpus(cores).
Installation
Add this to your application's shard.yml:
dependencies:
ncpu:
github: tbrand/ncpu
Usage
require "ncpu"
To get number of cores, you do
num_of_cpu_cores = Ncpu.get
Contributing
- Fork it ( https://github.com/tbrand/ncpu/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- tbrand taicsuzu - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- May 29, 2017
- Crystal
0.22.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/tbrand/ncpu.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1