vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
vb@rchiv Offline-Reader - exklusiv auf der vb@rchiv CD Vol.4  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Fortgeschrittene Programmierung
Re: wie lange laüft shon ein Programm 
Autor: Norbert
Datum: 16.05.02 10:08

Hallo, ich hoffe, Du weißt, wie du die ProzessId des Programmes ermittelst (im Notfall bei Tipps suchen).
Dann kannst DU mit folgender FUnktion verschiedene Zeiten ermitteln

Declare Function GetProcessTimes& Lib "kernel32" (ByVal hProcess As Long, _
lpCreationTime As FILETIME, lpExitTime As FILETIME, lpKernelTime As FILETIME, _
lpUserTime As FILETIME)

Parameter Type/Description
hProcess Long—A handle to a process.
lpCreationTime FILETIME — A FILETIME structure to load with the time at which the process was created.
lpExitTime FILETIME—A FILETIME structure to load with the time at which the process was terminated (undefined if the process is still running).
lpKernelTime FILETIME—A FILETIME structure to load with the total amount of time that the process has spent running in kernel mode.
lpUserTime FILETIME—A FILETIME structure to load with the total amount of time that the process has spent running in user mode.

Filetimestruktur:
Type FILETIME ' 8 Bytes
dwLowDateTime As Long
dwHighDateTime As Long
End Type

Description

64-bit number specifying the elapsed time since January 1, 1601, in 100-nanosecond increments.

Field Type/Description
dwLowDateTime, dwHighDateTime Long—Low and high-order 32 bits of the file time.

All of the material presented here is copyrighted by either Desaware or Macmillan. No part of this material may be used or reproduced in any fashion (except in brief quotations used in critical articles and reviews) without prior consent.
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
wie lange laüft shon ein Programm113Mohamed16.05.02 08:44
Re: wie lange laüft shon ein Programm187ModeratorDieter16.05.02 09:52
Re: wie lange laüft shon ein Programm30Mohamed16.05.02 10:03
Re: wie lange laüft shon ein Programm35Norbert16.05.02 10:08

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel