1 /* Copyright (c) 2008-2017. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 //teshsuite/simdag/platforms/evaluate_parse_time ../examples/platforms/nancy.xml
9 #include "src/internal_config.h"
14 #include "simgrid/simdag.h"
15 #include "xbt/xbt_os_time.h"
17 int main(int argc, char **argv)
19 xbt_os_timer_t timer = xbt_os_timer_new();
22 /* creation of the environment, timed */
23 xbt_os_cputimer_start(timer);
24 SD_create_environment(argv[1]);
25 xbt_os_cputimer_stop(timer);
27 /* Display the result and exit after cleanup */
28 printf( "%f\n", xbt_os_timer_elapsed(timer) );
29 printf("Workstation number: %zu, link number: %d\n", sg_host_count(), sg_link_count());
31 printf("Wait for %ss\n",argv[2]);