Deleted Added
sdiff udiff text old ( 13195:de9e5572ac44 ) new ( 13247:4aafce81e7dd )
full compact
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 480 unchanged lines hidden (view full) ---

489 if (timeFixed) {
490 SC_REPORT_ERROR("(E515) set default time unit failed",
491 "sc_time object(s) constructed");
492 }
493
494 // Normalize d to seconds.
495 defaultUnit = d * TimeUnitScale[tu];
496 specified = true;
497}
498
499sc_time
500sc_get_default_time_unit()
501{
502 return sc_time(defaultUnit, SC_SEC);
503}
504

--- 41 unchanged lines hidden ---