Usertime/Systemtime?
Gott
- html
0 hilker0 fastix®0 Stefan Bach
Moin
In der Selfforum Suche gibts die Anzeige in Usertime und Systemtime?
Wo liegt bei den beiden de Unterschied und wie berechnet man die?
Usertime = Ortszeit / bzw. die Uhrzeit die der PC des Users benutzt
Systemtime = die Zeit vom Server auf dem das Forum läuft...
Moin!
Wo liegt bei den beiden de Unterschied und wie berechnet man die?
Das weisst Du bereits.
Zwei Beispiele für die Berechnung:
Serverzeit:
http://www.fastix.de/test/zeit.php
Userzeit:
http://selfhtml.teamone.de/dhtml/beispiele/datumuhr.htm
MFFG (Mit freundlich- friedfertigem Grinsen)
fastix®
Hallo,
In der Selfforum Suche gibts die Anzeige in Usertime und Systemtime?
Wo liegt bei den beiden de Unterschied und wie berechnet man die?
Erst mal muss man sagen, dass hilker und fastix ziemlich daneben liegen mit ihren Antworten. Als Erklärung paste ich hier mal kurz etwas (kommt aus den News, message id ist 38998421.4537386@news21.bellglobal.com):
User time is amount of CPU time spent in user code.
System time is amount of CPU time spent in Unix system code.
Real time is wallclock time.
If Realtime is large, but other times are small, then your
program spends a lot of time waiting for external activity
(keyboard input, file I/O, etc.). If this is a concern, then
rearranging your program to make better use of this uncontrollable
wait time could permit your program to perform better.
If Systemtime is large compared to Usertime, then your program is
asking the system to do complex or difficult things. The rule of
thumb here is to make the systemtime as small as possible, so
system tuning or adjusting the application code to make lighter
demands on the system would be in order here.
If Usertime is large compared to Systemtime, then your program
is doing alot of work on it's own. There may be places where system
functions can be substituted, bringing your usertime down.
Wie man die Zeiten berechnet kann ich dir allerdings nicht sagen. Darum wird sich wahrscheinlich der scheduler des Betriebssystems kümmern. Dort wo die einzelnen Prozesse ihre Rechenzeit zugeteilt bekommen, dort wird diese dann wohl auch mitprotokolliert.
Viele Grüße,
Stefan