Tested again and found something even more shocking.
* Output to terminal window takes a hell of a lot of time - and differs over -p or not.
In both cases I ran -0 and -0p alternating, and just to be sure about the timings, I threw in an echo:| time after every -0p in addition to timer64.
C:\tmp>echo:|time & for /l %l IN (1,1,10) DO (c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo:|time)
The current time is: 12:07:12,39
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14408 KB = 15 MB
Work Set = 14956 KB = 15 MB
Kernel Time = 0.156 = 11%
User Time = 1.000 = 72%
Process Time = 1.156 = 84%
Global Time = 1.370 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14408 KB = 15 MB
Work Set = 14952 KB = 15 MB
Kernel Time = 0.296 = 14%
User Time = 1.125 = 55%
Process Time = 1.421 = 69%
Global Time = 2.043 = 100%
The current time is: 12:07:15,83
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14420 KB = 15 MB
Work Set = 14964 KB = 15 MB
Kernel Time = 0.171 = 12%
User Time = 1.062 = 78%
Process Time = 1.234 = 91%
Global Time = 1.354 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14432 KB = 15 MB
Work Set = 14976 KB = 15 MB
Kernel Time = 0.265 = 13%
User Time = 1.125 = 55%
Process Time = 1.390 = 68%
Global Time = 2.038 = 100%
The current time is: 12:07:19,25
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14416 KB = 15 MB
Work Set = 14964 KB = 15 MB
Kernel Time = 0.078 = 5%
User Time = 1.093 = 81%
Process Time = 1.171 = 87%
Global Time = 1.342 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14416 KB = 15 MB
Work Set = 14960 KB = 15 MB
Kernel Time = 0.343 = 16%
User Time = 1.140 = 56%
Process Time = 1.484 = 73%
Global Time = 2.026 = 100%
The current time is: 12:07:22,65
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14408 KB = 15 MB
Work Set = 14956 KB = 15 MB
Kernel Time = 0.125 = 9%
User Time = 1.015 = 76%
Process Time = 1.140 = 85%
Global Time = 1.326 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14420 KB = 15 MB
Work Set = 14960 KB = 15 MB
Kernel Time = 0.250 = 12%
User Time = 1.125 = 54%
Process Time = 1.375 = 66%
Global Time = 2.056 = 100%
The current time is: 12:07:26,06
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14420 KB = 15 MB
Work Set = 14960 KB = 15 MB
Kernel Time = 0.218 = 16%
User Time = 1.015 = 75%
Process Time = 1.234 = 92%
Global Time = 1.339 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14412 KB = 15 MB
Work Set = 14956 KB = 15 MB
Kernel Time = 0.359 = 17%
User Time = 1.093 = 52%
Process Time = 1.453 = 69%
Global Time = 2.081 = 100%
The current time is: 12:07:29,51
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14424 KB = 15 MB
Work Set = 14960 KB = 15 MB
Kernel Time = 0.171 = 12%
User Time = 1.000 = 74%
Process Time = 1.171 = 87%
Global Time = 1.345 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14428 KB = 15 MB
Work Set = 14968 KB = 15 MB
Kernel Time = 0.312 = 15%
User Time = 1.187 = 58%
Process Time = 1.500 = 73%
Global Time = 2.033 = 100%
The current time is: 12:07:32,91
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14416 KB = 15 MB
Work Set = 14956 KB = 15 MB
Kernel Time = 0.156 = 11%
User Time = 1.046 = 77%
Process Time = 1.203 = 88%
Global Time = 1.353 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14412 KB = 15 MB
Work Set = 14956 KB = 15 MB
Kernel Time = 0.359 = 17%
User Time = 1.046 = 51%
Process Time = 1.406 = 69%
Global Time = 2.034 = 100%
The current time is: 12:07:36,33
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14408 KB = 15 MB
Work Set = 14952 KB = 15 MB
Kernel Time = 0.156 = 11%
User Time = 1.000 = 75%
Process Time = 1.156 = 86%
Global Time = 1.332 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14416 KB = 15 MB
Work Set = 14956 KB = 15 MB
Kernel Time = 0.375 = 18%
User Time = 1.093 = 53%
Process Time = 1.468 = 72%
Global Time = 2.031 = 100%
The current time is: 12:07:39,72
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14408 KB = 15 MB
Work Set = 14952 KB = 15 MB
Kernel Time = 0.156 = 11%
User Time = 1.109 = 82%
Process Time = 1.265 = 94%
Global Time = 1.345 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14424 KB = 15 MB
Work Set = 14968 KB = 15 MB
Kernel Time = 0.437 = 21%
User Time = 1.140 = 56%
Process Time = 1.578 = 77%
Global Time = 2.024 = 100%
The current time is: 12:07:43,12
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf & echo: | time)
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14416 KB = 15 MB
Work Set = 14960 KB = 15 MB
Kernel Time = 0.140 = 10%
User Time = 0.968 = 71%
Process Time = 1.109 = 82%
Global Time = 1.346 = 100%
flac 1.4.1
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
testflacfile.flac: wrote 69120135 bytes, ratio=1,000
Commit = 14432 KB = 15 MB
Work Set = 14968 KB = 15 MB
Kernel Time = 0.296 = 14%
User Time = 1.109 = 54%
Process Time = 1.406 = 69%
Global Time = 2.034 = 100%
The current time is: 12:07:46,53
Enter the new time:
C:\tmp>
Now use --totally-silent and see times drop - and -p doesn't matter anymore:
C:\tmp>echo:|time & for /l %l IN (1,1,10) DO (c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f --totally-silent & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf --totally-silent & echo:|time)
The current time is: 12:08:34,97
Enter the new time:
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f --totally-silent & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf --totally-silent & echo: | time)
Commit = 14396 KB = 15 MB
Work Set = 14952 KB = 15 MB
Kernel Time = 0.125 = 11%
User Time = 0.937 = 87%
Process Time = 1.062 = 98%
Global Time = 1.075 = 100%
Commit = 14380 KB = 15 MB
Work Set = 14932 KB = 15 MB
Kernel Time = 0.046 = 4%
User Time = 1.015 = 95%
Process Time = 1.062 = 99%
Global Time = 1.066 = 100%
The current time is: 12:08:37,14
Enter the new time:
[... you get the idea ...]
C:\tmp>(c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0f --totally-silent & c:\bin\timer64 c:\bin\flac-1.4.1-win\Win64\flac.exe testflacfile.flac -0pf --totally-silent & echo: | time)
Commit = 14380 KB = 15 MB
Work Set = 14932 KB = 15 MB
Kernel Time = 0.062 = 5%
User Time = 1.015 = 94%
Process Time = 1.078 = 99%
Global Time = 1.079 = 100%
Commit = 14388 KB = 15 MB
Work Set = 14940 KB = 15 MB
Kernel Time = 0.109 = 10%
User Time = 0.968 = 89%
Process Time = 1.078 = 99%
Global Time = 1.078 = 100%
The current time is: 12:08:56,77
Enter the new time:
C:\tmp>
Also tried another build to be sure.