PwrTest Timer Scenario

The PwrTest Timer Scenario logs system timer resolution changes as they happen.

Syntax

pwrtest /timer /?  [/t:n]  [/?] 

/t:n
Specifies the total time (in minutes) for the scenario to run (the default value for n is 30 minutes).

Examples

  pwrtest /timer
pwrtest /timer /t:5

XML log file output

<PwrTestLog>
  <SystemInformation>
  </SystemInformation>
  <TimerEvents> 
    <TimerResolutionRundown>
      <Timestamp></Timestamp>
      <CurrentResolution></CurrentResolution>
      <MinimumResolution></MinimumResolution>
      <MaximumResolution></MaximumResolution>
      <KernelCount></KernelCount>
      <KernelResolution></KernelResolution>
    </TimerResolutionRundown>
    <TimerResolutionRequestRundown>
        <Timestamp></Timestamp>
        <AppName></AppName>
        <Resolution></Resolution>
        <ProcessID></ProcessID>
    </TimerResolutionRequestRundown>
    <NtSetTimerResolution>
      <Timestamp></Timestamp>
      <AppName></AppName>
      <ServiceName></ServiceName>
      <Resolution></Resolution>
      <ProcessID></ProcessID>
    </NtSetTimerResolution>
    <UpdateTimerResolution>
      <Timestamp></Timestamp>
      <Resolution></Resolution>
    </UpdateTimerResolution>
    <ExSetTimerResolution>
      <Timestamp></Timestamp>
      <Resolution></Resolution>
    </ExSetTimerResolution>  
  </TimerEvents>
</PwrTestLog> 

The following table describes the XML elements that appear in the log file.

Element Description
<TimerEvents>

Contains all the different timer events. Only one <TimerEvents> element can appear in a PwrTest log file.

<Timestamp>

Time stamp of any given event.

<TimerResolutionRundown>

Event to show current timer resolution statistics. Only one of these events will be logged.

<CurrentResolution>

Current resolution in milliseconds.

<MinimumResolution>

Minimum resolution.

<MaximumResolution>

Maximum resolution.

<KernelCount>

Number of resolution requests from kernel mode.

<KernelResolution>

Current kernel timer resolution.

<TimerResolutionRequestRundown>

Events to show current resolution requests. Multiple events may be logged.

<AppName>

Process name of requester.

<Resolution>

Resolution of request in milliseconds.

<ProcessID>

Process ID of requester.

<NtSetTimerResolution>

Event indicates a process made a timer resolution request.

<ServiceName>

Service name of requester if applicable.

<UpdateTimerResolution>

Event indicates the system updated the timer resolution.

<ExSetTimerResolution>

Event indicates a kernel component made a timer resolution request.

PwrTest Syntax