How can I find out how long my slurm job took to execute?
Use the sacct
command:
sacct -l -j <myid>
and look for the 'elapsed' column
sacct -j <myid> --format=Elapsed
is a very succinct way to show this (Thanks to Sparhawk & damienfrancois for these suggestions, I thought I'd suggest this as a full answer).