0

I'm using native function to get process Time the function is

static extern bool GetProcessTimes(IntPtr hProcess, out FILETIME
       lpCreationTime, out FILETIME lpExitTime, out FILETIME lpKernelTime,
       out FILETIME lpUserTime);

But the problem here is that the resolution of the value returned by lpKernelTime,lpUserTime is 15.6ms. mean that we can get ticks 0-156001-320002 all multiple of 156001.

Their is any way to reduce this resolution to 1ms or less like to have value like 0-1000-2000-3000...

Omega
  • 1,539
  • 1
  • 11
  • 18
  • 1
    I saw a similar question the other day, the answer was no. not on windows – Ewan Apr 21 '15 at 08:52
  • So can we do it in other system that is able to run .NET app ? – Omega Apr 21 '15 at 08:59
  • I think the consensus was that you need a real time OS in order to _reliably_ achieve ms acuracy – Ewan Apr 21 '15 at 09:01
  • So Do u know any real Time OS where i can run .NET app ? – Omega Apr 21 '15 at 09:02
  • @Ewan: The similar question was asked in "[How we can reduce the resolution of myProcess.TotalProcessorTime?](http://stackoverflow.com/q/29676704/1504523)" and it was asked by _Omega_ – Arno Apr 21 '15 at 10:51
  • @Ewan Yes still looking for the approach :( – Omega Apr 21 '15 at 10:53

0 Answers0