The Nebula Device 3: Timing Namespace Reference

The Nebula Device 3

Timing Namespace Reference


Detailed Description

The Nebula3 Timing Subsystem

The Nebula3 Timing subsystem offers classes and servies for measuring elapsed time, and working with the calendar time (days, weeks, month, years).

Timing Subsystem Basics

Data Structures

class  CalendarTime
class  Timer

Typedefs

typedef double Time
 the time datatype
typedef int Tick
 the tick datatype (one tick == 1 millisecond)

Functions

Time TicksToSeconds (Tick ticks)
Tick SecondsToTicks (Time t)
void Sleep (Time t)

Function Documentation

Time Timing::TicksToSeconds ( Tick  ticks  )  [inline]

Convert ticks to seconds.

Tick Timing::SecondsToTicks ( Time  t  )  [inline]

Convert seconds to ticks

void Timing::Sleep ( Time  t  )  [inline]

Put current thread to sleep for specified amount of seconds.