Need some suggestion on digital stop watch.

Hi all,

I have a requirement to show session time on the form once the user logs-in till logs out. What i have done is :

Added a cron job to the on-open solutions of the main solutions that triggers a method every second which calculate the time difference between the current time and the log in time and assign it to the label which shows the time.

I am not sure if this is the optimized way to accomplishing this… :? :?
Can some one please share some experience regarding this.

I had also check the iClock plugin to start - stop the time but there is no way to use it in web client. I guess there must be some way to do this in an optimized manner.

Another question : Is there way in servoy to catch the session object ?

Thanks for the help in advance… :)

You could use javascript in an HTML area, just google for “javascript stopwatch”, this one looks promising: Make a stopwatch using CSS3 without images or javascript

Thanks Nicola, I will take a look at it for sure.