Does WordPress have something like timer hook?

You can use the native PHP sleep() function in WordPress for timers in seconds, or usleep() for timers in microseconds:

http://php.net/manual/en/function.sleep.php

http://php.net/manual/en/function.usleep.php

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)