---
name: "QueryPerformanceCounter"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/QueryPerformanceCounter"
---

# QueryPerformanceCounter(3w)

## NAME

**QueryPerformanceCounter** (KERNEL32.@)

## SYNOPSIS

BOOL QueryPerformanceCounter\
  (\
   PLARGE\_INTEGER *counter*\
  )

## DESCRIPTION

Get the current value of the performance *counter*.

## PARAMS

*counter* **\[Out\]**  Destination for the current *counter* reading.

## RETURNS

**Success:** **TRUE**. *counter* contains the current reading

**Failure:** **FALSE**.

## SEE ALSO

See **[QueryPerformanceFrequency(3w)](/QueryPerformanceFrequency/3w.md)**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/cpu.c"**.

Debug channel **"reg"**.
