How this could cause CPU usage ? plugin_init is called one time and also you don't need to use static. Also the array size is too big, 6 is enough for a full time string. Also your code won't work 100%, because you are not sure that plugin_init will get called(by map change, server (re)start) exactly at 00:00