# GetComputerStats Method The GetComputerStats method returns a range of statistics for a computer. Syntax
    [obj=] SiteCafe.Server.ComputerStats.GetComputerStats(compIndex, sTime,
           eTime, start, maxCount)
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.
start | Long value that specifies the start statistics.
maxCount | Long value that specifies the maximum number of statistics.
Return Value Returns a ComputerStatsCol collection containing the specified statistics. 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 first computer's connection time of the first statistics.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    cStats = SiteCafe.Server.ComputerStats.GetComputerStats(1, 0, 0, 1, 10);
    alert(cStats.Item(1).ConnectTime);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top