Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Member Functions | List of all members
jop::Clock::Time Class Reference

Class to store a time value. More...

#include <Clock.hpp>

Public Member Functions

 Time (const uint64 nsec)
 Constructor. More...
 
float64 asSeconds () const
 Get the time value as seconds. More...
 
uint32 asMilliseconds () const
 Get the time value as milliseconds. More...
 
uint64 asMicroseconds () const
 Get the time value as microseconds. More...
 
uint64 asNanoseconds () const
 Get the time value as nanoseconds. More...
 

Detailed Description

Class to store a time value.

Definition at line 40 of file Clock.hpp.

Constructor & Destructor Documentation

jop::Clock::Time::Time ( const uint64  nsec)

Constructor.

Parameters
nsecThe initial time value in nanoseconds

Member Function Documentation

uint64 jop::Clock::Time::asMicroseconds ( ) const

Get the time value as microseconds.

Returns
The time value as microseconds
uint32 jop::Clock::Time::asMilliseconds ( ) const

Get the time value as milliseconds.

Returns
The time value as milliseconds
uint64 jop::Clock::Time::asNanoseconds ( ) const

Get the time value as nanoseconds.

Returns
The time value as nanoseconds
float64 jop::Clock::Time::asSeconds ( ) const

Get the time value as seconds.

Returns
The time value as seconds

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