# Sleep function php

**URL:** https://forum.kirupa.com/t/sleep-function-php/293454
**Category:** Uncategorized
**Created:** [July 29, 2009, 7:11am UTC](https://forum.kirupa.com/t/sleep-function-php/293454 "2009-07-29T07:11:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)
#### Post date: [July 29, 2009, 7:11am UTC](https://forum.kirupa.com/t/sleep-function-php/293454/1 "2009-07-29T07:11:46Z")

</div>

Hi everyone,

I was wondering if the sleep function when used consume much processing power or is it a bad practice to use it as i want a function to kick in every day at a certain time and then sleep and wait untill the next day?

e.g. function runs and check the DB to see whether or not it must update / delete data. So function for e.g. runs everyday at 00:00 and sleep until it must run again.

Please does anybody can put me on the right track.

Regards,

Jerome Chevreau
