timer_test.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 1998-2001, 2004, 2007, 2013-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: timer_test.c,v 1.40 2007/06/19 23:46:59 tbox Exp $ */
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int tick_count = 0;
static void
}
static void
tick_count++;
printf("*** resetting ti3 ***\n");
}
}
static void
const char *type;
type = "idle";
else
type = "life";
printf("*** saving task 3 ***\n");
return;
}
}
static char one[] = "1";
static char two[] = "2";
static char three[] = "3";
int
unsigned int workers;
if (argc > 1) {
if (workers < 1)
workers = 1;
if (workers > 8192)
workers = 8192;
} else
workers = 2;
#ifndef WIN32
sleep(15);
#else
Sleep(15000);
#endif
printf("destroy\n");
#ifndef WIN32
sleep(2);
#else
Sleep(2000);
#endif
printf("destroyed\n");
printf("Statistics for mctx1:\n");
return (0);
}