|
|
|
Время работы функции
|
|||
|---|---|---|---|
|
#18+
Есть функция в DLL, написанная в VC++, требуется написать функцию, которая будет выполнять вышеописанную функцию и возвращать её время выполнения. Приблизительно время около 13 мс. Как это сделать? Код: plaintext 1. 2. 3. 4. 5. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.07.2007, 14:09 |
|
||
|
Время работы функции
|
|||
|---|---|---|---|
|
#18+
FullKettleЕсть функция в DLL, написанная в VC++, требуется написать функцию, которая будет выполнять вышеописанную функцию и возвращать её время выполнения. Приблизительно время около 13 мс. Как это сделать? Код: plaintext 1. 2. 3. 4. 5. MSDN Help GetSystemTime The GetSystemTime function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC). VOID GetSystemTime( LPSYSTEMTIME lpSystemTime // system time ); Parameters lpSystemTime [out] Pointer to a SYSTEMTIME structure to receive the current system date and time. Return Values This function does not return a value. Remarks MAPI: For more information, see Syntax and Limitations for Win32 Functions Useful in MAPI Development. Requirements Windows NT/2000: Requires Windows NT 3.1 or later. Windows 95/98: Requires Windows 95 or later. Header: Declared in Winbase.h; include Windows.h. Library: Use Kernel32.lib. See Also Time Overview, Time Functions, GetLocalTime, GetSystemTimeAdjustment, SetSystemTime, SYSTEMTIME MSDN Help SYSTEMTIME The SYSTEMTIME structure represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond. typedef struct _SYSTEMTIME { WORD wYear; WORD wMonth; WORD wDayOfWeek; WORD wDay; WORD wHour; WORD wMinute; WORD wSecond; WORD wMilliseconds; } SYSTEMTIME, *PSYSTEMTIME; Members wYear Specifies the current year. wMonth Specifies the current month; January = 1, February = 2, and so on. wDayOfWeek Specifies the current day of the week; Sunday = 0, Monday = 1, and so on. wDay Specifies the current day of the month. wHour Specifies the current hour. wMinute Specifies the current minute. wSecond Specifies the current second. wMilliseconds Specifies the current millisecond. Remarks It is not recommended that you add and subtract values from the SYSTEMTIME structure to obtain relative times. Instead, you should Convert the SYSTEMTIME structure to a FILETIME structure. Copy the resulting FILETIME structure to a ULARGE_INTEGER structure. Use normal 64-bit arithmetic on the ULARGE_INTEGER value. Requirements Windows NT/2000: Requires Windows NT 3.1 or later. Windows 95/98: Requires Windows 95 or later. Header: Declared in Winbase.h; include Windows.h. See Also Time Overview, Time Structures, FILETIME, GetSystemTime, ULARGE_INTEGER, SetSystemTime ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.07.2007, 14:17 |
|
||
|
|

start [/forum/topic.php?fid=57&gotonew=1&tid=2028449]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
148ms |
get topic data: |
6ms |
get first new msg: |
3ms |
get forum data: |
1ms |
get page messages: |
23ms |
get tp. blocked users: |
1ms |
| others: | 194ms |
| total: | 395ms |

| 0 / 0 |
