A cycle computer for Spark Core microcontroller