GetUsageTime Method



 
The GetUsageTime method returns the usage time of a computer.


Syntax

    [long=] SiteCafe.Server.Sessions.GetUsageTime(compIndex, sTime, eTime)
    
Parameters
    compIndex Long value that specifies the computer index.
    sTime Long value that specifies the start time.
    eTime Long value that specifies the end time.
Return Value
    Returns a Long value that contains the usage time.
Remarks
    The start and/or end time will be ignored if they are 0. Otherwise they are specified by the return value of the Date.getVarDate method divided by 1000.
Examples
    The following example displays the usage time of the first computer.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    alert(SiteCafe.Server.Sessions.GetUsageTime(1, 0, 0));
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top