aboutsummaryrefslogtreecommitdiff
path: root/zentest-appstub/zentest-appstub.cpp
blob: bea50270db0381a49712447f02db16e6c7d52694 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Epic Games, Inc. All Rights Reserved.

#include <stdio.h>
#include <cstdlib>
#include <cstring>
#include <thread>

using namespace std::chrono_literals;

int
main(int argc, char* argv[])
{
	for (int i = 0; i < argc; ++i)
	{
		if (std::strncmp(argv[i], "-t=", 3) == 0)
		{
			int sleeptime = std::atoi(argv[i] + 3);

			printf("[zentest] sleeping for %ds!", sleeptime);

			std::this_thread::sleep_for(sleeptime * 1s);
		}
	}
}