GetUsageTime Method

The GetUsageTime method returns the usage time of a computer.


    [long=] SiteCafe.Server.Sessions.GetUsageTime(compIndex, sTime, eTime)
    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.
    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.
    The following example displays the usage time of the first computer.

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

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

Back to top