How to use a software timer to handle SPI

I want to make a delay without interrupting the whole program, like timers do this.