Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.09.23;
Скачать: 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 вся ветка

Текущий архив: 2002.09.23;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.012 c
1-73710
and_sp
2002-09-11 11:30
2002.09.23
RxTrayIcon


14-73863
Suntechnic
2002-08-24 23:30
2002.09.23
Интересно, а кто местный FAQ сотавлял?


7-73895
Kosmach
2002-07-11 07:20
2002.09.23
Не могу записать в COM порт


3-73531
shulc
2002-09-02 18:51
2002.09.23
Как оставить поле типа TDateTime пустым


14-73823
K-Sergey
2002-08-26 20:24
2002.09.23
Как набрать номер с помощью модема