Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/test_regression/28102005/system.cpp

    r23 r18  
    2727check_time (int i)
    2828{
    29   const sc_time &t = sc_time_stamp ();
     29        const sc_time &t = sc_time_stamp ();
    3030  CERR(i);
    3131  CERR(t.to_double());
    32 #ifdef SYSTEMCASS_SPECIFIC
    33   ASSERT((int) (t.to_double ()) == i);
    34 #else
    3532  ASSERT((int) (t.to_double ()) == i * 1000);
    36 #endif
    3733  CERR(t.to_seconds ());
    3834        double seconds = t.to_seconds()*1000000000;
     
    4137  char s[256];
    4238  const char *unit;
    43 #ifdef SYSTEMCASS_SPECIFIC
    44   unit = "NS";
    45 #else
    4639  if (i == 0)
    4740    unit = "s";
     
    5043  else
    5144    unit = "ns";
    52 #endif
    5345  sprintf (s, "%d %s", i,unit);
    5446  CERR(s);
     
    6355
    6456  check_time (0);
    65   sc_start (0);
     57        sc_start (0);
    6658
    6759  check_time (0);
    68   sc_start (1);
     60        sc_start (1);
    6961  check_time (1);
    7062
    71   sc_start (15);
     63        sc_start (15);
    7264  check_time (16);
    7365
    74   sc_start (7);
     66        sc_start (7);
    7567  check_time (23);
    7668
    77   sc_start (100);
     69        sc_start (100);
    7870  check_time (123);
    7971
    80   sc_start (1000);
     72        sc_start (1000);
    8173  check_time (1123);
    8274  cerr << "Test OK.\n";
Note: See TracChangeset for help on using the changeset viewer.