# waitKey for imShow; is there an optimum time?

**URL:** <https://forum.opencv.org/t/waitkey-for-imshow-is-there-an-optimum-time/7917>\
**Category:** C++\
**Tags:** highgui\
**Created:** [March 13, 2022, 5:28pm UTC](https://forum.opencv.org/t/waitkey-for-imshow-is-there-an-optimum-time/7917 "2022-03-13T17:28:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehardin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/ehardin/32/2541_2.png) [@ehardin](https://forum.opencv.org/u/ehardin)\
**Post date:** [March 13, 2022, 5:28pm UTC](https://forum.opencv.org/t/waitkey-for-imshow-is-there-an-optimum-time/7917/1 "2022-03-13T17:28:33Z")

</div>

OpenCV 4.5, C++, Visual Studio 2017, Windows 10

When using waitKey() to process an imShow, is there an optimum time to use for the waitKey() or is waitKey(1) more than sufficient? Is there any reason to go higher if all it is used for is to process the imShow?

Ed
