Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Qpc layout renderer

NLog documentation is currently being re-organized to use the wiki format. Some content is still missing or incomplete.
We need volunteers to help maintain and organize this Wiki. Please contact Jarek if you are interested in helping out.

High precision timer, based on the value returned from QueryPerformanceCounter() optionally converted to seconds. 

Supported in

Configuration Syntax

${qpc:normalize=Boolean:difference=Boolean:alignDecimalPoint=Boolean
     :precision=Integer:seconds=Boolean}
Read more about using the Configuration File.

Parameters

  • Rendering Options
  • normalize - Indicates whether to normalize the result by subtracting it from the result of the first call (so that it's effectively zero-based).Boolean Default: True
    This parameter is not supported in:
    • NLog v1.0 for .NET Compact Framework 1.0
    • NLog v1.0 for .NET Compact Framework 2.0
    • NLog v1.0 for .NET Framework 1.0
    • NLog v1.0 for .NET Framework 1.1
    • NLog v1.0 for .NET Framework 2.0
  • difference - Indicates whether to output the difference between the result of QueryPerformanceCounter and the previous one.Boolean Default: False
    This parameter is not supported in:
    • NLog v1.0 for .NET Compact Framework 1.0
    • NLog v1.0 for .NET Compact Framework 2.0
    • NLog v1.0 for .NET Framework 1.0
    • NLog v1.0 for .NET Framework 1.1
    • NLog v1.0 for .NET Framework 2.0
  • alignDecimalPoint - Indicates whether to align decimal point (emit non-significant zeros).Boolean Default: True
  • precision - Number of decimal digits to be included in output.Integer Default: 4
  • seconds - Indicates whether to convert the result to seconds by dividing by the result of QueryPerformanceFrequency().Boolean Default: True

Fatal error: Call to undefined function ad_script_footer() in /home/jkowalski/nlog-project.org/wiki/skins/NLog.php on line 297