1 /* small_sleep.c -- check what happens when the processes do sleeps very shortly*/
3 /* Copyright (c) 2008, 2009, 2010. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
12 XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Small sleep test");
14 int function(int argc, char *argv[]);
17 int function(int argc, char *argv[])
19 gras_init(&argc, argv);
20 gras_msg_handleall(100);
21 XBT_INFO("Let's go 1E-5");
22 gras_msg_handleall(1E-5);
23 XBT_INFO("Let's go 1E-10");
24 gras_msg_handleall(1E-10);
25 XBT_INFO("Let's go 1E-15");
26 gras_msg_handleall(1E-15);
27 XBT_INFO("Let's go 1E-20");
28 gras_msg_handleall(1E-20);