** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.10 2000/08/31 08:38:58 kevin Exp $
+** $Id: ctsim.cpp,v 1.11 2000/09/02 16:40:36 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
#include <getopt.h>
#endif
-static const char* rcsindent = "$Id: ctsim.cpp,v 1.10 2000/08/31 08:38:58 kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.11 2000/09/02 16:40:36 kevin Exp $";
class CTSimApp* theApp = NULL;
theApp = this;
}
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+
bool
CTSimApp::OnInit(void)
{
+#ifdef HAVE_SETPRIORITY
+ setpriority (PRIO_PROCESS, 0, 15); // set to low scheduling priority
+#endif
+
// process options
while (1) {
int c = getopt_long (argc, argv, "", ctsimOptions, NULL);