Are we counting objects where we believe that they were used in timekeeping ways, but aren't sure? Or are we referring to things that we are certain that they were timekeeping devices?
It had to be back around 5000 B.C.
Well there's the something like Antikythera (not sure on the spelling) mechanism that is not only one of the oldest time pieces but also considered these days to be a computer.