class::chrono::Clock

class chrono::Clock
  : public api::InfoObject

The clock class is used for reading the system CPU clocks.

It reads out a chrono::ClockTime object which is a 64-bit value with seconds and nanoseconds based on struct timeval.

Summary

static ClockTime get_resolution(

enum clock_id clock_id
)

static ClockTime get_time(

enum clock_id clock_id
)

enum clock_id

Members

static ClockTime get_resolution(

enum clock_id clock_id
)

Gets the resolution of the specified clock.


static ClockTime get_time(

enum clock_id clock_id
)

Returns the present value of the specified clock.

Returns

The time as a ClockTime object.

#include <sapi/chrono.hpp>

ClockTime now;
now = Clock::get_time();

enum clock_id

X

Thanks for Coming!

Subscribe to news and updates