How do a Computer know how long 1 second is?

How do you teach a computer this. Of course, this is something Dell, HP and the ones making the computers do, but I'm pretty curious.
A computer wouldn't know how long 1 sec is, right?
2 answers 2