util: ms command to calculate length of operations