Adding a delay in the ToF sensors VL6180X and/or VL53L0X

I will have the sensor connected to the micro:bit like done in this link: VL53L0X Time-of-Flight sensor and micro:bit example | Microbit learning

This is a project for a university assignment. The project i am trying to make:

using the time of flight sensor to detect distance of a persons face, using the values given, to display shades of colour assigned to preset values.

The reason i need a delay is as i drag the sensor at a set distance across and down the face in a predetermined pattern, i don't want it reading 1,000,000 times. I want an imaginary (or even light projected grid) of between 10x14 - 30x42 values.
So i need a 1-2 second delay between read, or "on button press" function.

I am very new to arduino/micro:bit, and coding in general. I plan on using the code provided the micro:bit TOF link above.

I have successfully connected the microbit to arduino software. therefore the sensor should work as seen in that link. - i just need to control when it senses.

Many thanks!!

This timing tutorial pinned to the top of the Programming Questions forum will get you going in the right direction.