how long does it take for you to get ur cpr class?

so i work at a school with kids. they told me its important to have a cpr certicate and know how to do cpr, so ima take a class here next week . but how long does it take? is it all day or coulpe of hours?