measure viterbi time