High resolution psql \timing on Windows

Started by ITAGAKI Takahiroover 19 years ago2 messagespatches
Jump to latest
#1ITAGAKI Takahiro
itagaki.takahiro@oss.ntt.co.jp

This patch replace _ftime() by QueryPerformanceCounter() to measure durations
in psql \timing on Windows. It had only 15ms~ of time resolusion. I brought
the codes from src/include/executor/instrument.h .

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Attachments:

psql_timing_on_windows.patchapplication/octet-stream; name=psql_timing_on_windows.patchDownload+17-17
#2Magnus Hagander
magnus@hagander.net
In reply to: ITAGAKI Takahiro (#1)
Re: High resolution psql \timing on Windows

ITAGAKI Takahiro wrote:

This patch replace _ftime() by QueryPerformanceCounter() to measure durations
in psql \timing on Windows. It had only 15ms~ of time resolusion. I brought
the codes from src/include/executor/instrument.h .

Applied, thanks.

//Magnus