A granular clock is observed in a vertically vibrated compartmentalized granular gas composed of two types of grains with the same size. The dynamics of the clock is studied in terms of an unstable evaporation or condensation model for the granular gas. In this model, the temperatures of the two types of grains are considered to be different, and they are functions of the composition of the gas. Oscillations in the system are driven by the asymmetric collisions properties between the two types of grains. Both our experiments and model show that the transition of the system from a homogeneous state to an oscillatory state is via a Hopf bifurcation.