SqueezeBrains SDK 1.18
sb_cs::SbTime Class Reference

Time class More...

#include <cs_common.h>

Public Member Functions

signed long long Get ()
 Returns the time. More...
 
void Set (signed long long sec)
 Set the time. More...
 
String ToString () override
 Formats time in a readable string. More...
 
 SbTime (signed long long sec)
 Constructor. More...
 

Detailed Description

Time class

Definition at line 271 of file cs_common.h.

Constructor & Destructor Documentation

◆ SbTime()

sb_cs::SbTime::SbTime ( signed long long  sec)

Constructor.

Parameters
secAn integral value representing the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC.

Member Function Documentation

◆ Get()

signed long long sb_cs::SbTime::Get ( )

Returns the time.

Returns
Returns an integral value representing the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC.

◆ Set()

void sb_cs::SbTime::Set ( signed long long  sec)

Set the time.

Parameters
secAn integral value representing the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC.

◆ ToString()

String sb_cs::SbTime::ToString ( )
override

Formats time in a readable string.

Returns
An instance to the String class or null in case of memory error

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