Build and Run
- At the root dir, run
swift package resolve.
After this step, the program can be run in the commandline like so:
./.build/x86_64-apple-macosx10.10/debug/Sampler 4 60
The first argument
4 is the interval (unit: seconds) at which a stream emits an integer value.
The second argument
60 is the total duration (unit: seconds) for which the program should run.
- Alternatively, run
swift package generate-xcodeprojafter the step 2 to generate/run an xcode project.