trickle usage

C++
# Throttle an application
trickle -s -d 50 -u 10 pacman -Syu

# Limit download rate of file
trickle -s -d 200 wget "<url to file you want to download>"
Source

Also in C++: