Created
November 29, 2018 11:06
-
-
Save DuongAQ/1ecc73a81b89faa5830f0d4bdca7f43d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1: Nếu dùng VBA phiên bản 7 thì copy đoạn code sau: | |
Private Declare PtrSafe Function getFrequency Lib "kernel32" Alias _ | |
"QueryPerformanceFrequency" (cyFrequency As Currency) As Long | |
Private Declare PtrSafe Function getTickCount Lib "kernel32" Alias _ | |
"QueryPerformanceCounter" (cyTickCount As Currency) As Long | |
#2: Nếu dùng VBA các phiên bản khác thì copy đoạn code sau: | |
Private Declare Function getFrequency Lib "kernel32" Alias _ | |
"QueryPerformanceFrequency" (cyFrequency As Currency) As Long | |
Private Declare Function getTickCount Lib "kernel32" Alias _ | |
"QueryPerformanceCounter" (cyTickCount As Currency) As Long |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment