Why don't you use CLock?