Arduino Uno and Leonardo SPI clock can't be measured
Please note the SPI clock will only be active while it is shifting data. So simply put the spi.transfer in a hard loop

#include &lt;SPI.h&gt;

void setup() {
  SPI.begin();
  while (1) {
    SPI.transfer(0x00);
  } 
}