Allow consumers to specify the sample interval.
Sample every 30 seconds by default.
Merge pull request #4 from remind101/sample-interval

Allow consumers to specify the sample interval.