It is necessary to calculate the time, work for the day, for the month, for the week. I make a report card. How to do it?
Closed due to the fact that the essence of the issue is not clear to the participants of BOPOH , ThisMan , PashaPash β¦ , Mstislav Pavlov , korytoff 6 Oct '15 at 16:31 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
- oneWhat does it mean to count ?? - Maksym Prus
- oneMore specifically? - thunder
- @turebekuly, According to the rules of the forum, questions should not be limited to the decision or the completion of student assignments. Please clarify what you have done yourself and what did not work out. - Artem
|
2 answers
$time = microtime(true);// ΠΠ°ΠΏΠΎΠΌΠΈΠ½Π°Π΅ΠΌ Π½Π°ΡΠ°Π»ΠΎ ΡΠΊΡΠΈΠΏΡΠ° //some script body print((microtime(true)-$time));ΠΡΠ²ΠΎΠ΄ΠΈΠΌ ΡΠ°Π·Π½ΠΈΡΡ ΠΌΠ΅ΠΆΠ΄Ρ Π½Π°ΡΠ°Π»ΠΎΠΌ ΠΈ ΠΊΠΎΠ½ΡΠΎΠΌ.
For sluggish operations, time () is sufficient.
|
what ?? Well, time()
for example
Returns the number of seconds elapsed since the beginning of the Unix Epoch (The Unix Epoch, January 1, 1970 00:00:00 GMT) to the current time.
|