# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CTime Class Reference

This class provide a independant local time system. More...

#include <time_nl.h>

Inheritance diagram for NLMISC::CTime

Inheritance graph
[legend]
List of all members.

Static Public Methods

TTime getLocalTime ()
 get the time in millisecond. More...

TTicks getPerformanceTime ()
 get the time in processor ticks. More...

double ticksToSecond (TTicks ticks)
 convert a ticks count into second. More...


Detailed Description

This class provide a independant local time system.

Author(s):
Vianney Lecroart , Nevrax France
Date:
2000

Definition at line 50 of file time_nl.h.


Member Function Documentation

TTime NLMISC::CTime::getLocalTime ( ) [static]
 

get the time in millisecond.

It's a local time, it means that the value is different on 2 differents computers. Use the CUniTime to get a universal time that is the same on all computers.

Warning:
On Windows, the value is on 32 bits only.

Definition at line 44 of file time_nl.cpp.

Referenced by CAnimationDlg::OnInitDialog(), CAnimationDlg::handle(), and NLAIAGENT::CAgentManagerTimer::CRunTimer::run().

TTicks NLMISC::CTime::getPerformanceTime ( ) [static]
 

get the time in processor ticks.

Use it for profile purpose. Only implemented under windows for the time. If the performance time is not supported on this hardware, it returns 0.

Definition at line 61 of file time_nl.cpp.

double NLMISC::CTime::ticksToSecond ( TTicks ticks ) [static]
 

convert a ticks count into second.

If the performance time is not supported on this hardware, it returns 0.0.

Definition at line 74 of file time_nl.cpp.


The documentation for this class was generated from the following files: