updated time measurement with a random number and made changes to
ignisKMC