X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f783ed4680c6862a1b7543237e89d1221334bae0..a533429838a35ac04b4307c5509f32a0e8bce150:/teshsuite/simdag/platforms/Evaluate_parse_time.c diff --git a/teshsuite/simdag/platforms/Evaluate_parse_time.c b/teshsuite/simdag/platforms/Evaluate_parse_time.c index d79e47ea6d..0a96873f33 100644 --- a/teshsuite/simdag/platforms/Evaluate_parse_time.c +++ b/teshsuite/simdag/platforms/Evaluate_parse_time.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008, 2009, 2010, 2011. The SimGrid Team. +/* Copyright (c) 2008-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -8,30 +8,35 @@ #include #include -#include "simdag/simdag.h" -#include "surf/surf_private.h" +#include "simgrid/simdag.h" +#include "src/surf/surf_private.h" #include "xbt/xbt_os_time.h" -extern routing_global_t global_routing; +extern routing_platf_t routing_platf; int main(int argc, char **argv) { xbt_os_timer_t timer = xbt_os_timer_new(); - /* initialization of SD */ - SD_init(&argc, argv); + /* initialization of SD */ + SD_init(&argc, argv); - /* creation of the environment, timed */ - xbt_os_timer_start(timer); - SD_create_environment(argv[1]); - xbt_os_timer_stop(timer); + /* creation of the environment, timed */ + xbt_os_cputimer_start(timer); + SD_create_environment(argv[1]); + xbt_os_cputimer_stop(timer); /* Display the result and exit after cleanup */ - printf( "%lf\n", xbt_os_timer_elapsed(timer) ); - - sleep(20); - - SD_exit(); - - return 0; + printf( "%f\n", xbt_os_timer_elapsed(timer) ); + printf("Workstation number: %d, link number: %d\n", + SD_workstation_get_count(), sg_link_count()); + if(argv[2]){ + printf("Wait for %ss\n",argv[2]); + sleep(atoi(argv[2])); + } + + SD_exit(); + + free(timer); + return 0; }