code: public static void main(String[] args) throws Exception {
          Throttle t = new Throttle(50);
          double desiredSpeed = Double.parseDouble(args[0]);
          while (true) {
              new java.util.Date().toString();
              t.throttle(desiredSpeed, 100);
          }
      }
docs: Test program which exercises the CPU in an infinite loop, throttled by
  the amount given in args[0]. On a machine performing no other work, the
  average CPU load should be about the same as the throttled speed.
  
  @param args args[0] - desired speed, 0.0 to 1.0