Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx::utils_t::PreciseTime Class Reference

Provides high-resolution time utilities for nanoseconds and milliseconds. More...

#include <ssgx_utils_t_time.h>

Static Public Member Functions

static int64_t NowInNanoseconds ()
 Returns the current time in nanoseconds since the UNIX epoch.
 
static int64_t NowInMilliseconds ()
 Returns the current time in milliseconds since the UNIX epoch.
 

Detailed Description

Provides high-resolution time utilities for nanoseconds and milliseconds.

Member Function Documentation

◆ NowInMilliseconds()

static int64_t ssgx::utils_t::PreciseTime::NowInMilliseconds ( )
static

Returns the current time in milliseconds since the UNIX epoch.

Exceptions
runtime_errorThrow the exception if the ssgx_ocall_time call fails or the time verification fails.
Returns
Current time in milliseconds.

◆ NowInNanoseconds()

static int64_t ssgx::utils_t::PreciseTime::NowInNanoseconds ( )
static

Returns the current time in nanoseconds since the UNIX epoch.

Exceptions
runtime_errorThrow the exception if the ssgx_ocall_time call fails or the time verification fails.
Returns
Current time in nanoseconds.

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