title: How to get ticks from QueryPerformanceCounter in C#?
body: <p>I need to replace Stopwatch to avoid using getters for its properties. I am going to implement it using QueryPerformanceCounter. <strong>I only need ticks</strong> nothing else. </p>
  
  <p>Can anyone provide a code snipet please, to get correct ticks (1/10000 of ms) or any other small but stable value.</p>
  
  <p>Please note my server sets clock granularity down to <strong>0.5 ms</strong> (not sure if it affects QueryPerformanceCounter) but just for you to know.</p>
  
  <p>Please also note - I do not need a timer. I only need to measure time intervals between parts of code.</p>
  
  <p><strong>EDIT:</strong> to avoid confusion I really want to know what is <strong>lpPerformanceCount</strong> in QueryPerformanceCounter(out long lpPerformanceCount); </p>