How to test running time of VBA code
How to test running time of VBA code
내가 만든 함수의 성능이 어느 정도 인지 확인하는 방법은 여럿 있는데, VBA가 제공하는 Now(), Timer함수를 사용하는 것 외에 QueryPerformanceCounter/ QueryPerformanceFrequency라는 API함수를 호출하는 방법이 있다. 사실 첨 보는 함수라서 이렇게 참고삼아 올린다. Option Explicit Private Type LARGE_INTEGER lowpart As Long highpart As Long End Type Private Declare Function QueryPerformanceCounter Lib "kernel32" _ (lpPerformanceCount As LARGE_INTEGER) As Long Private Declare…
View On WordPress















