JNodeOS v1.1.5 API

edu.utah.janos.nodeos
Class CycleTimer

java.lang.Object
  |
  +--edu.utah.janos.nodeos.CycleTimer

public class CycleTimer
extends java.lang.Object

Access to the underlying cycle timer.

XXX Make this more generic: a simple timer interface.

Author:
Janos Ministry of Development

Field Summary
 long count
           
 java.lang.String name
           
 long start_time
           
 long time
           
 long timeSquareSum
           
 
Constructor Summary
CycleTimer()
           
CycleTimer(java.lang.String name)
           
 
Method Summary
 long avg()
           
static long cycles()
           
 void end()
           
 void reset()
           
 void start()
           
 long stdDev()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

count

public long count

time

public long time

timeSquareSum

public long timeSquareSum

start_time

public long start_time
Constructor Detail

CycleTimer

public CycleTimer()

CycleTimer

public CycleTimer(java.lang.String name)
Method Detail

reset

public void reset()

start

public void start()

end

public void end()

avg

public long avg()

stdDev

public long stdDev()

cycles

public static long cycles()

JNodeOS v1.1.5 API

This documentation is Copyright (C) 1998-2001 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/