[Xerte] Re: counting seconds

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Jan 23 10:22:07 GMT 2012


GetTimer() returns the number of ms since 1.1.1970, so

T = gettimer()

Then later

 Secs = (getTimer() - t ) /1000
________________________________________
From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare [knowledgeware at kccsoft.com]
Sent: 23 January 2012 00:13
To: Xerte discussion list
Subject: [Xerte] counting seconds

Anyone know if xerte desktop has an equivalent to the AW ‘systemseconds’ function?

When a user enters a module I want to snapshot the ‘systemseconds’. When they leave the module I want to grab it again and determine how many total seconds they spent in the module, then divide by 60 for minutes. I don’t want a seconds counter that resets to ‘0’ each minute… don’t immediately see what I can use for this.

RonM2



More information about the Xerte mailing list