Вниз
Скачать: CL | DM;

Время (очень быстрый таймер)   Найти похожие ветки 

← →
Alex Che ©   (2002-09-11 12:07) [0]

Подскажите функцию которая возвражает значение времени в мск с интервалом 1-2 мск. пробовал GetTickCount но у нее интервал 5-6 мск. Помогите!!! я уже кучу информации перерыл но ничего подходящего не нашел. пробовал даже через потоки делать.


← →
Виктор Щербаков ©   (2002-09-11 12:13) [1]

Почитай про Multimedia Timers. Но не факт, что поможет.


← →
Alex Che ©   (2002-09-11 12:20) [2]

подскажи где почитать про Multimedia Timers


← →
Рыжик ©   (2002-09-11 12:23) [3]

А TTimer пробовал?


← →
Виктор Щербаков ©   (2002-09-11 12:24) [4]


> А TTimer пробовал?

И не надо его пробовать. Точность оставляет желать лучшего.


← →
Виктор Щербаков ©   (2002-09-11 12:24) [5]


> подскажи где почитать про Multimedia Timers

Например в SDK.


← →
Рыжик ©   (2002-09-11 12:28) [6]

Может это подойдёт:
High-Resolution Timer
A counter is a general term used in programming to refer to an incrementing variable. Some systems include a high-resolution performance counter that provides high-resolution elapsed times.

If a high-resolution performance counter exists on the system, the QueryPerformanceFrequency function can be used to express the frequency, in counts per second. The value of the count is processor dependent. On some processors, for example, the count might be the cycle rate of the processor clock.

The QueryPerformanceCounter function retrieves the current value of the high-resolution performance counter (if one exists on the system). By calling this function at the beginning and end of a section of code, an application essentially uses the counter as a high-resolution timer. For example, suppose that QueryPerformanceFrequency indicates that the frequency of the high-resolution performance counter is 50,000 counts per second. If the application calls QueryPerformanceCounter immediately before and immediately after the section of code to be timed, the counter values might be 1500 counts and 3500 counts, respectively. These values would indicate that .04 seconds (2000 counts) elapsed while the code executed


← →
Shaman_Naydak ©   (2002-09-11 12:55) [7]

QueryPerformanceCounter и QueryPerformanceFrequency

Только учти, все равно, будут здоровенные дырки - время, когда не исполняется твой поток



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.011 c
1-73657
grigorys
2002-09-10 17:57
2002.09.23
DELPHI и VB


3-73495
@Ujin
2002-08-31 19:12
2002.09.23
ADO - проблема!!! А Ж... уже горит....


3-73553
Ihor Osov'yak
2002-09-03 10:58
2002.09.23
Access & Foregin key


3-73535
Fedorenkoda
2002-09-01 12:35
2002.09.23
Держать группу вместе


3-73566
Starter2
2002-09-03 14:56
2002.09.23
BDE + BCD поля




   Наверх