![]() |
Zeit zwischen zwei "tastendrücke"
wie kann man die zeit zwischen zwei tastendrücken (ist das richtig) ermitteln
mit einem timer auf interval 1 gehts nicht, weil der timer zu langsam ist, und ich brauche eine millisekunde genaue angabe. |
Re: Zeit zwischen zwei "tastendrücke"
Hai vlees91,
schaue Dir mal die Funktion GetTickCount an. |
Re: Zeit zwischen zwei "tastendrücke"
GetTickCount ist aber nicht genau (~10ms)
Schau dir mal QueryPerformanceCounter an, da bekommst ganz genaue Werte. |
Re: Zeit zwischen zwei "tastendrücke"
Hallo und herzlich Willkommen in der DP, Michaela :)
|
Re: Zeit zwischen zwei "tastendrücke"
Ich würde aber sagen, dass Gettickcount für die Messung von Tastenanschlägen genau genug ist. Auch wenn's nicht perfekt ist, ist auch die Benutzung im Coder einfacher.
|
Re: Zeit zwischen zwei "tastendrücke"
danke
gettickcount ist genug |
Re: Zeit zwischen zwei "tastendrücke"
Aus der Win32 Hilfe:
The GetMessageTime function returns the message time for the last message retrieved by the GetMessage function from the current thread's message queue. The time is a long integer that specifies the elapsed time, in milliseconds, from the time the system was started to the time the message was created (that is, placed in the thread's message queue). |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:07 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz