Is there a utility to show total up/download quantity of a process

view full story

http://askubuntu.com – In bash I can run time $(curl -L ...|bash) to find out the total time this script takes. Is there a way to get similar total information about the up/download traffic it generated? Note that nethogs does not do what I need - it shows the traffic rates from time to time. I'd like the cummulative total of the traffic in/out. (HowTos)