From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/classNLMISC_1_1CTime.html | 252 +++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 docs/doxygen/nel/classNLMISC_1_1CTime.html (limited to 'docs/doxygen/nel/classNLMISC_1_1CTime.html') diff --git a/docs/doxygen/nel/classNLMISC_1_1CTime.html b/docs/doxygen/nel/classNLMISC_1_1CTime.html new file mode 100644 index 00000000..61c9ca87 --- /dev/null +++ b/docs/doxygen/nel/classNLMISC_1_1CTime.html @@ -0,0 +1,252 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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: +

+ +NLNET::_CUniTime + +List of all members. + + + + + + + + + +

Static Public Methods

uint32 getSecondsSince1970 ()
 returns the number of second since midnight (00:00:00), January 1, 1970, coordinated universal time, according to the system clock. More...

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:
+Vianney Lecroart , Nevrax France
+Date:
+2000
+

+ +

+Definition at line 57 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 55 of file time_nl.cpp. +

+References getPerformanceTime, nlerror, and NLMISC::TTime. +

+Referenced by NLAIAGENT::CAgentWatchTimer::attach, NLSOUND::CAudioMixerUser::curTime, NLSOUND::CSimpleSource::getPlayTime, NLSOUND::CComplexSource::getTime, loadForm, NLSOUND::CComplexSource::onEvent, NLSOUND::CBackgroundSource::onEvent, NLSOUND::CComplexSource::onUpdate, NLSOUND::CBackgroundSource::onUpdate, NLSOUND::CComplexSource::play, NLSOUND::CBackgroundSource::play, NLAIAGENT::CAgentManagerTimer::CRunTimer::run, NLAIAGENT::CAgentClockTimer::runActivity, NLAIAGENT::CAgentWatchTimer::runActivity, NL3D::CWaterRenderObs::setupMaterialNVertexShader, ticksToSecond, and NLSOUND::CAudioMixerUser::update.

+

+ + + + +
+ + + + + + + + + +
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 105 of file time_nl.cpp. +

+References nlwarning, NLMISC::TTicks, and x. +

+Referenced by getLocalTime, NL3D::CScene::render, NLAIAGENT::CAgentScript::run, NLAIAGENT::CAgentScript::sendMessage, and ticksToSecond.

+

+ + + + +
+ + + + + + + + + +
uint32 NLMISC::CTime::getSecondsSince1970   [static]
+
+ + + + + +
+   + + +

+returns the number of second since midnight (00:00:00), January 1, 1970, coordinated universal time, according to the system clock. +

+This values is the same on all computer if computers are synchronized (with NTP for example). +

+Definition at line 45 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 143 of file time_nl.cpp. +

+References getLocalTime, getPerformanceTime, NLMISC::TTicks, and NLMISC::TTime. +

+Referenced by NL3D::CScene::render.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1