Timedesk is a project mainly written in JAVASCRIPT and PHP, it's free.
freelance time counter
Time Tracking system (main idea from odesk team)
START, STOP, MEMO
Just check out all code to YOURSERVER/timedesk and run http://yourserver/timedesk