RobotStudio event

Accurate Timer in RobotStudio

I am looking for a way to create a accurate timer in RobotStudio.  I have created my own Smart Component Timer using the Smart Component Timer library, but this is not consistent with it's time.
I am using a stopwatch to time the timer and its outputs.  The timer outputs are varying depending on what is going on in the simulation.  I need a way to more accurately depict the cycle time of machines in my simulation so I can figure out ways to optimize my program to make the overall cycle time of the cell be faster.  I have attached my Timer Smart Component just in case you may see something that I am not doing right?