Jump to content

Archived

This topic is now archived and is closed to further replies.

dagnasty

Determing cpu usage time with php timer?

Recommended Posts

Recently my hosting provider 1and1 moved my site which consists of 1 script to an "auxillary server" for too much resource usage until i fix the problem or get a dedicated server. Since they don't provide resource usage stats I was wondering if timing the script a lot of times and getting the average time it takes to parse and multiplying it by the amount of time the script is run a day, could I get an estimate or anything close to the amount of CPU time my site uses?

Thanks,
Brian

Share this post


Link to post
Share on other sites
You should be able to request some proof/advice from them about the usage, maybe they'll tell you about the calculations they use.

In the mean time, why not post your code with a title of 'suggestions for optimisation'.

Regards
Huggie

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.