How to get inside the delay() function

Hi! Sorry if this question is around, I could not find it. I am working with timers directly. I would like to know where is the code of delay function. delay() use timer0 and I wonder how it was made? it is an oportunity for me to learning more about timers viewing this complex function. Thanks

Where did you install the IDE? Which version are you using? On my 1.0.5 version, delay() is implemented in
C:\Users\PaulS\Documents\Arduino_105\hardware\arduino\cores\arduino\wiring.c

There is nothing complex about delay()

delay() is here : https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/wiring.c
yield() is here : https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/hooks.c

I didn't know there was a 'yield()'.
This is a test to override the empty yield():

// override yield test
// Blink led and print a dot to serial monitor every second.

void setup() 
{
  Serial.begin(9600);
  Serial.println("Running");
  
  pinMode(13, OUTPUT);
}

void loop() 
{
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

// override the empty yield function, executed from within delay().
void yield()
{
  static unsigned long prevMillis;
  if( millis() - prevMillis > 1000)
  {
    Serial.print(".");
    prevMillis += 1000;
  }
}