First attempt at "sample" operator. Should probably use "interval"
operator instead of an internal clock. Also still needs tests!