RubySlicc_Util.hh (9116:9171e26543fa) | RubySlicc_Util.hh (9171:ae88ecf37145) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 35 unchanged lines hidden (view full) --- 44random(int n) 45{ 46 return random() % n; 47} 48 49inline Time 50get_time() 51{ | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 35 unchanged lines hidden (view full) --- 44random(int n) 45{ 46 return random() % n; 47} 48 49inline Time 50get_time() 51{ |
52 return g_eventQueue_ptr->getTime(); | 52 return g_system_ptr->getTime(); |
53} 54 55inline Time 56zero_time() 57{ 58 return 0; 59} 60 --- 72 unchanged lines hidden --- | 53} 54 55inline Time 56zero_time() 57{ 58 return 0; 59} 60 --- 72 unchanged lines hidden --- |