1 /* Copyright (c) 2008-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 //for i in $(seq 1 100); do teshsuite/simdag/platforms/evaluate_get_route_time ../examples/platforms/cluster.xml 1 2> /tmp/null ; done
12 #include "simgrid/simdag.h"
13 #include "surf/surf.h"
14 #include "xbt/xbt_os_time.h"
16 #define BILLION 1000000000L;
18 int main(int argc, char **argv)
21 const sg_host_t *workstations;
24 xbt_os_timer_t timer = xbt_os_timer_new();
26 /* SD initialization */
29 /* creation of the environment */
30 SD_create_environment(argv[1]);
32 workstations = sg_host_list();
33 list_size = sg_host_count();
35 /* Random number initialization */
36 srand( (int) (xbt_os_time()*1000) );
45 printf("%d\tand\t%d\t\t",i,j);
47 xbt_os_cputimer_start(timer);
48 SD_route_get_list(w1, w2);
49 xbt_os_cputimer_stop(timer);
51 printf("%f\n", xbt_os_timer_elapsed(timer) );