nn::os::Tick Class

Header file: nn/os.h

Syntax

class Tick

Description

Class for handling system ticks.

A system tick represents a single clock cycle of the CPU. The conversion constructors and conversion operators let you convert from ticks to nn::fnd::TimeSpan objects (which represent actual time), and vice versa. Use GetSystemCurrent to get the number of ticks that have occurred since the system was started up.

Member Constants

S TICKS_PER_SECOND Constant representing the number of ticks in one second.

Member Functions

Tick Constructor that takes a number of ticks and initializes an object.
operator s64 Converts to a 64-bit tick value.
operator nn::fnd::TimeSpan Converts to a nn::fnd::TimeSpan value.
ToTimeSpan Converts to a nn::fnd::TimeSpan value.
S GetSystemCurrent Returns the number of ticks that have occurred since the system was started up.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL