1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 41 unchanged lines hidden (view full) --- 50double us; 51double ns; 52double ps; 53 54double Hz; 55double kHz; 56double MHz; 57double GHZ; |
58} // namespace Float |
59 60namespace Int { 61Tick s; 62Tick ms; 63Tick us; 64Tick ns; 65Tick ps; |
66} // namespace Float |
67 |
68} // namespace SimClock |
69 70void 71setClockFrequency(Tick ticksPerSecond) 72{ 73 using namespace SimClock; 74 Frequency = ticksPerSecond; 75 Float::s = static_cast<double>(Frequency); 76 Float::ms = Float::s / 1.0e3; --- 55 unchanged lines hidden --- |