~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to teshsuite/simdag/platforms/Evaluate_parse_time.c

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
{
19
19
  xbt_os_timer_t timer = xbt_os_timer_new();
20
20
 
21
 
        /* initialization of SD */
22
 
        SD_init(&argc, argv);
 
21
  /* initialization of SD */
 
22
  SD_init(&argc, argv);
23
23
 
24
 
        /* creation of the environment, timed */
25
 
        xbt_os_timer_start(timer);
26
 
        SD_create_environment(argv[1]);
 
24
  /* creation of the environment, timed */
 
25
  xbt_os_timer_start(timer);
 
26
  SD_create_environment(argv[1]);
27
27
  xbt_os_timer_stop(timer);
28
28
 
29
29
  /* Display the result and exit after cleanup */
30
 
        printf( "%lf\n", xbt_os_timer_elapsed(timer) );
31
 
          printf("Workstation number: %d, link number: %d\n",
32
 
                 SD_workstation_get_number(), SD_link_get_number());
33
 
        if(argv[2]){
34
 
                printf("Wait for %ss\n",argv[2]);
35
 
                sleep(atoi(argv[2]));
36
 
        }
37
 
 
38
 
        SD_exit();
39
 
 
40
 
        free(timer);
41
 
        return 0;
 
30
  printf( "%lf\n", xbt_os_timer_elapsed(timer) );
 
31
    printf("Workstation number: %d, link number: %d\n",
 
32
           SD_workstation_get_number(), SD_link_get_number());
 
33
  if(argv[2]){
 
34
    printf("Wait for %ss\n",argv[2]);
 
35
    sleep(atoi(argv[2]));
 
36
  }
 
37
 
 
38
  SD_exit();
 
39
 
 
40
  free(timer);
 
41
  return 0;
42
42
}