[Quantproject-developers] QuantProject/b4_Business/a05_Timing HistoricalEndOfDayTimer.cs, 1.7, 1.8
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-01-19 19:02:22
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16514/b4_Business/a05_Timing Modified Files: HistoricalEndOfDayTimer.cs Log Message: The method GetCurrentTime() has been improved (exception included now) Index: HistoricalEndOfDayTimer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing/HistoricalEndOfDayTimer.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** HistoricalEndOfDayTimer.cs 4 Feb 2005 00:10:24 -0000 1.7 --- HistoricalEndOfDayTimer.cs 19 Jan 2008 19:02:18 -0000 1.8 *************** *** 110,113 **** --- 110,116 ---- public EndOfDayDateTime GetCurrentTime() { + if ( this.currentTime == null ) + throw new Exception( "Start() has not been invoked yet!" + + "GetCurrentTime() cannot be invoked before Start()" ); return this.currentTime; } |