Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Delay Class Reference

Delay in milliseconds. More...

#include <delay.h>

List of all members.

Static Public Methods

void delay (long ms)
 Sleep. More...

unsigned long getMilliticks ()
 Gets current milliticks. More...


Detailed Description

Delay in milliseconds.

This class should be used when sleeping for N milliseconds is necessary. Its implementation is system/platform dependend. It also contains other static methods working with milliseconds.

Author:
Petr Luner, Marek Przeczek

Definition at line 47 of file delay.h.


Member Function Documentation

void Delay::delay long    ms [static]
 

Sleep.

This method delays calling thread for 'ms' milliseconds.

Parameters:
ms  number of milliseconds

Definition at line 37 of file delay.cpp.

Referenced by Prof::event_jvmShutDown(), Sampling::main(), and IProf::run().

unsigned long Delay::getMilliticks   [static]
 

Gets current milliticks.

Returns:
ticks in milliseconds

Definition at line 51 of file delay.cpp.

Referenced by Prof::event_monitorContendedEnter(), Prof::event_monitorContendedEntered(), and Sampling::main().


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:28 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001