I am trying to profile a VB6 application.
Basically, I would like to work out a method at the method level, how much time is running.
However, VB6 only supports 1 second. Is there a good way to develop milliseconds, etc.
Although MSDN says the timer is accurate to 1 second, I found it better than in practice.
GetTickCount is usually more accurate about 10 to 16 milliseconds. Here is the VB6 announcement.
Declare Function GetTickCount Lib "Kernel32" () As Long
the same Microsoft article shows how to use QueryPerformanceCounterit to get much higher accuracy if your computer supports it and if you need it.
QueryPerformanceCounter
CCRP
If I remember correctly, TimeGetTime is pretty accurate from winmm.dll.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd757629%28v=vs.85%29.aspx
Source: https://habr.com/ru/post/1722608/More articles:Is Collections.copy broken (in OpenJDK 6)? - javaThere are problems with the GC when observing the template - garbage-collectionHow to change the location of ejb-jar.xml in my maven project? - javaASP.NET: custom dynamically populated site map (SiteMapProvider) - asp.netCannot force log4net to output anything when using NHibernate - nhibernateCreating a C # object is much slower than calling a constructor - performanceCatch the text before inserting it into the text box - c #Внедрить XML в node с помощью строки - stringHow the stl vector provides random access - c ++Как поделиться изображением между проектами в Microsoft SQL Server Reporting Services 2005? - sql-server-2005All Articles