The computers in Mikaelas office are dinosars and the printer is slow as a sloth

is this a metaphor Simile both simile and metaphor
how can u tell

Dinosaurs = metaphor

slow as a sloth = simile

Similes have ‘like’ or ‘as’ in the phrasing, but metaphors don’t.