Autor Beitrag
martin121
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: So 11.04.04 22:14 
HI,
wie ihr dem Titel schon entnehmen könnt suche ich eine Möglichkeit,
Herauszufinden wie lange das Os schon läuft.
Hoffentlich könnt ihr mir helfen
Ciao Martin.
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: So 11.04.04 23:13 
GetTickCount wär ne Möglichkeit. Fängt nur nach 49,7 Tagen wieder bei 0 an.
Für Serversysteme könnt das also durchaus ein Problem sein.

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 12.04.04 09:21 
|TF|Alucard
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 43

XP

BeitragVerfasst: Mo 12.04.04 12:01 
Hi also du brauchst einen Timer und ein Editfeld:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FormCreate(Sender: TObject);
begin
edit1.text:=timetostr(getcurrenttime / 60000000);
end;

Das aktualiesierst du mit:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
edit1.text:=inttostr(getcurrenttime)+ ' ms';
end;


mfg |TF|Alucard

Moderiert von user profile iconDeCodeGuru: Code- durch Delphi-Tags ersetzt

_________________
Ich weiß nicht mit welchen Waffen der 3. Weltkrieg geführt wird, aber im 4. werden es Stöcke und Steine sein. [Albert Einstein]


Zuletzt bearbeitet von |TF|Alucard am Mo 12.04.04 16:27, insgesamt 1-mal bearbeitet
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 12.04.04 15:19 
@Luckie: Schmeiß den Code von Nico weg. Da gibt´s eine Lösung mit 2 Anweisungen ... *gäääääääääähn*
:mrgreen:
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 13.04.04 14:23 
LOL.

PSDK unter der Überschrift:
Obsolete Windows Programming Elements
GetCurrentTime: Replaced by the GetTickCount function.

Und damit haben wir wieder das 47 Tage-Problem, welches von Nicos Code umgangen wird.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 13.04.04 15:32 
MathiasSimmack hat folgendes geschrieben:
@Luckie: Schmeiß den Code von Nico weg. Da gibt´s eine Lösung mit 2 Anweisungen ... *gäääääääääähn*
:mrgreen:
das würde mich jetzt aber mal interessieren !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 13.04.04 15:51 
Den Code von Nico? Sieh Link in meinem ersten Posting.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 13.04.04 18:19 
matze hat folgendes geschrieben:
das würde mich jetzt aber mal interessieren !

matze, lesen (evtl. auch das Posting vor meinem) und mitdenken!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 14.04.04 09:47 
hä... tut mir leid da steh ich jetzt voll aufm schaluch

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 14.04.04 11:20 
Schonmal was von Ironie gehört..? ;)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 14.04.04 12:10 
aha :think:

ich stell mich in letzter zeit irgendwie doof an....
ich glaub ich brauch urlaub

_________________
In the beginning was the word.
And the word was content-type: text/plain.