Made Time throw InterruptedExceptions on sleep
Extracted SampledCount and SampledTotal out of their Rate classes.
Added Apache license file