1 /* Copyright (c) 2008, 2009, 2010. 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
11 #include "simdag/simdag.h"
12 #include "surf/surf_private.h"
15 #define BILLION 1000000000L;
16 extern routing_global_t global_routing;
18 int main(int argc, char **argv)
20 struct timespec start, stop;
23 /* initialisation of SD */
26 if( clock_gettime( CLOCK_REALTIME, &start) == -1 ) {
27 perror( "clock gettime" );
31 /* creation of the environment */
32 SD_create_environment(argv[1]);
34 if( clock_gettime( CLOCK_REALTIME, &stop) == -1 ) {
35 perror( "clock gettime" );
39 accum = ( stop.tv_sec - start.tv_sec )
40 + (double)( stop.tv_nsec - start.tv_nsec )
43 printf( "%lf\n", accum );