I can't stop time

hello,

I have a problem with my script, because currently my script doesn’t seem to just reset the timer but returns me to the initial state I enter when I start unity.

I would only like to reset the timer and have the scene remain as it is at the moment.

    private void ReadValue(int[][] packageOfData, int chnIndex)
    {
        for (int i = 0; i < packageOfData.Length; i++)
        {


           // First stage condition (High level of stress)
           if (packageOfData[i][chnIndex] < 1000 && packageOfData[i][chnIndex] > 800)
           {

        timesum += Time.deltaTime;
         
   
if (timesum >= 10.0f)
    {


                 if (Aura != null)
              
                {
                  Aura.SetActive(false);
                }

                if (AuraGlow != null)
              
                {
                  AuraGlow.SetActive(false);
                }

                if (DirectionalLight != null)
                {
                    DirectionalLight.transform.rotation = Quaternion.Slerp(point0.rotation, pointA.rotation, timeCount);
                    timeCount = timeCount + Time.deltaTime*Rotation_Smoothness_Sun;
                } 

                 if (RustGarden1 != null)
                {
                    Quaternion_Rotate_From = RustGarden1.transform.rotation;
                    Quaternion_Rotate_To = Quaternion.Euler (0,20,0);
                    RustGarden1.transform.rotation = Quaternion.Lerp (Quaternion_Rotate_From, Quaternion_Rotate_To, Time.deltaTime*Rotation_Smoothness);
                }
                  
           }
else{
       timesum = 0.0f;
       }  


           }
    }
}

Please don’t multipost. You’ll probably want to do this in Update() Script which helps me to check values into a range of time