adding method that calculate the difference in the clock and add a mask to it in Core.cpp