Time trial and road bikes are used in triathlons. However a triathlon specific bike has a steeper angle in order to mimic running somewhat and thereby allow the transition from running to cycling be less traumatic.
A time trial bike is more about aerodynamics.
However the two sometimes meet and create a aerodynamic steep angled triathlon bike.
Hope that helps.