getTime

getTime#

Model.getTime()#

Return the current time in the Model.

Returns:

float – Current time.

Example#

The following example is used to set a variable named currentTime to current value of time in the Model

  1. Tcl Code

    set currentTime [getTime]
    
  2. Python Code

    currentTime = model.getTime()
    

Code developed by: fmk