[Sugar-devel] Time spent on activity (was Best time, format for logging?)

Gonzalo Odiard godiard at sugarlabs.org
Fri Mar 28 09:12:30 EDT 2014


>
>
> >
> > I like that. Save in zero at start, then every write_file just need
> replace
> > the last value.
>
> what about something like:
>
> {start: 1396011589, stops: [1396011616, 1396045612]}
>
> an activity that was inappropriately closed and never logged a stop:
>
> {start: 1396011589}
>
>
>
IMHO, you want one stop for session. Sugar execute write_file every time
you switch activities, but you don't want save all of them, just the last.

Right now, you have:

{launch_time: 1396011589, 1396011616, 1396045612}

If you save the accumulated time in zero at start you will have:

{session_time: 23960, 0, 5612}

Where 0 is a session not saved, for any reason.

Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140328/849f3390/attachment.html>


More information about the Sugar-devel mailing list