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 //teshsuite/simdag/platforms/evaluate_parse_time ../examples/platforms/nancy.xml
10 #include "src/internal_config.h"
15 #include "simgrid/simdag.h"
16 #include "surf/surf.h"
17 #include "xbt/xbt_os_time.h"
19 int main(int argc, char **argv)
21 xbt_os_timer_t timer = xbt_os_timer_new();
24 /* creation of the environment, timed */
25 xbt_os_cputimer_start(timer);
26 SD_create_environment(argv[1]);
27 xbt_os_cputimer_stop(timer);
29 /* Display the result and exit after cleanup */
30 printf( "%f\n", xbt_os_timer_elapsed(timer) );
31 printf("Workstation number: %zu, link number: %d\n", sg_host_count(), sg_link_count());
33 printf("Wait for %ss\n",argv[2]);