Output clock signal on MKRZERO
The IC on the MKRZERO is an Atmel SAMD21.  Look up the datasheet and read the section on timer counter.  Yes, it's a long document, but you will find all of the information there.