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[])
21 gras_init(&argc, argv);
22 gras_msg_handleall(100);
23 INFO0("Let's go 1E-5");
24 gras_msg_handleall(1E-5);
25 INFO0("Let's go 1E-10");
26 gras_msg_handleall(1E-10);
27 INFO0("Let's go 1E-15");
28 gras_msg_handleall(1E-15);
29 INFO0("Let's go 1E-20");
30 gras_msg_handleall(1E-20);