The centimetre-gram-second system (abbreviated CGS or cgs) is a variant of the metric system. The derived units are on the centimeter as the unit of length, the gram as a unit of mass and the second as a unit of time. The system evolved in the nineteenth century when it was used to define both electrical and mechanical units. 