Xtimepro is a project mainly written in SHELL and C, it's free.
Manage attendance of youself at X11 environment.
xtimepro -- Manage attenace of youself at X11 environment
STAT FILE FORMAT
last idle-time total-idle-time
CORE TIME CALCULATION ** NO EVENT
prev_idle > this_idle
exec exec exec
** SOME EVENT
this_idle < prev_idle => something of EVENT is occur between exec.
exec exec EVENT exec
** OVER THE CHECKTIME
now > checktime > prev_time => Record last(=prev_time) as latest event of day. => set prev_time = last = -1
exec exec exec
** FIRST EVENT OF DAY
prev_time == -1
prev_idle > this_idle
=> Record time now as First of Event of day.
exec exec EVENT exec
.