Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / teshsuite / gras / small_sleep / small_sleep.c
1 /* small_sleep.c -- check what happens when the processes do sleeps very shortly*/
2
3 /* Copyright (c) 2008, 2009, 2010. The SimGrid Team.
4  * All rights reserved.                                                     */
5
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. */
8
9
10 #include "gras.h"
11
12 XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Small sleep test");
13
14 int function(int argc, char *argv[]);
15
16
17 int function(int argc, char *argv[])
18 {
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);
29   XBT_INFO("done");
30   gras_exit();
31   return 0;
32 }