[Mathlib-commitlog] SF.net SVN: mathlib:[610] JMathLib/trunk/src/jmathlib/toolbox/time
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-05 12:22:21
|
Revision: 610
http://mathlib.svn.sourceforge.net/mathlib/?rev=610&view=rev
Author: st_mueller
Date: 2009-01-05 11:48:17 +0000 (Mon, 05 Jan 2009)
Log Message:
-----------
changed handling of global variables
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/time/tic.java
JMathLib/trunk/src/jmathlib/toolbox/time/toc.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/time/tic.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/time/tic.java 2009-01-04 12:41:00 UTC (rev 609)
+++ JMathLib/trunk/src/jmathlib/toolbox/time/tic.java 2009-01-05 11:48:17 UTC (rev 610)
@@ -6,6 +6,7 @@
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.interpreter.*;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.toolbox.general.global;
import java.util.*;
/*
@@ -23,7 +24,7 @@
double start = (double)d.getTime();
- Variable ticVar = getVariables().createVariable("_tic");
+ Variable ticVar = getGlobalVariables().createVariable("_tic");
ticVar.assign(new DoubleNumberToken(start));
return null; //DoubleNumberToken.one;
Modified: JMathLib/trunk/src/jmathlib/toolbox/time/toc.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/time/toc.java 2009-01-04 12:41:00 UTC (rev 609)
+++ JMathLib/trunk/src/jmathlib/toolbox/time/toc.java 2009-01-05 11:48:17 UTC (rev 610)
@@ -25,10 +25,10 @@
double stop = (double)d.getTime();
- if (!getVariables().isVariable("_tic"))
+ if (!getGlobalVariables().isVariable("_tic"))
throwMathLibException("toc: you must call tic before toc");
- OperandToken ticTok = getVariable("_tic").getData();
+ OperandToken ticTok = getGlobalVariables().getVariable("_tic").getData();
if (ticTok instanceof DoubleNumberToken)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|