1 /* $Id: gras.c 3859 2007-07-18 12:29:51Z donassbr $ */
3 /* small_sleep.c -- check what happens when the processes do sleeps very shortly*/
5 /* Copyright (c) 2007 Martin Quinson. */
6 /* All rights reserved. */
8 /* This program is free software; you can redistribute it and/or modify it
9 * under the terms of the license (GNU LGPL) which comes with this package. */
14 XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Small sleep test");
16 int function (int argc,char *argv[]);
19 int function (int argc,char *argv[]) {
20 gras_init(&argc,argv);
21 gras_msg_handleall(100);
22 INFO0("Let's go 1E-5");
23 gras_msg_handleall(1E-5);
24 INFO0("Let's go 1E-10");
25 gras_msg_handleall(1E-10);
26 INFO0("Let's go 1E-15");
27 gras_msg_handleall(1E-15);
28 INFO0("Let's go 1E-20");
29 gras_msg_handleall(1E-20);