Skip to content

Commit b444076

Browse files
committed
Delay on Windows terminal also for GPU tutorial
1 parent 8f07143 commit b444076

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

examples/vklTutorialGPU.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
#include <iomanip>
88
#include <iostream>
99

10+
#if defined(_MSC_VER)
11+
#include <windows.h> // Sleep
12+
#endif
13+
1014
// setup specialization constant for feature flags
1115
static_assert(std::is_trivially_copyable<VKLFeatureFlags>::value);
1216

@@ -396,5 +400,11 @@ int main()
396400

397401
std::cout << "complete." << std::endl;
398402

403+
#if defined(_MSC_VER)
404+
// On Windows, sleep for a few seconds so the terminal window doesn't close
405+
// immediately.
406+
Sleep(3000);
407+
#endif
408+
399409
return 0;
400410
}

0 commit comments

Comments
 (0)