From 37275c1a822794bd7d92847a14e74cf46724007f Mon Sep 17 00:00:00 2001 From: czoido Date: Thu, 24 Oct 2024 11:27:30 +0200 Subject: [PATCH] check clock precission --- .github/workflows/win-tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/win-tests.yml b/.github/workflows/win-tests.yml index 58f45ed0f4b..99915184a60 100644 --- a/.github/workflows/win-tests.yml +++ b/.github/workflows/win-tests.yml @@ -38,6 +38,14 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Check clock precision in Windows + run: | + python -c "import time; \ + clock_info = time.get_clock_info('time'); \ + print(f'Time clock precision: {clock_info.resolution} seconds'); \ + perf_info = time.get_clock_info('perf_counter'); \ + print(f'Perf counter precision: {perf_info.resolution} seconds')" + - name: Cache pip packages uses: actions/cache@v4 with: