Let us consider the following code and the algorithm corresponding to it
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[]{algorithm2e}
\begin{document}
\begin{center}
\begin{algorithm}[H]
\KwData{this text}
\KwResult{how to write algorithm with \LaTeX2e }
initialization\;
\While{not at end of this document}{
read current\;
\eIf{understand}{
go to next section\;
current section becomes this one\;
}{
go back to the beginning of current section\;
}
}
\caption{How to write algorithms}
\end{algorithm}
\end{center}
\end{document}
Which gives the following
I want to add running times for each step to my algorithm as shown below (for example)
So, I need to make my algorithm as a column in the table and one more column for running times of each step, how can I make my algorithm as a column inside a table?


