added candumplog class method to compute length of candumplog