WeightedSampling.currentTime

WeightedSampling.currentTime()
Returns:

get the current running time in second (float)

Return type:

float

Example

import pyagrum as gum

bn = gum.fastBN("A->B<-C")
ie = gum.WeightedSampling(bn)
ie.setMaxIter(1000)
ie.makeInference()
ie.currentTime() >= 0  # in seconds
# True

Class

WeightedSampling

Overridden in

LoopyWeightedSampling.currentTime