ZED Open Capture  v0.6.0
Low level camera driver for the ZED stereo camera family
Namespaces | Enumerations | Functions
defines.hpp File Reference

Go to the source code of this file.

Namespaces

 sl_oc
 

Enumerations

enum  sl_oc::VERBOSITY { sl_oc::NONE = 0 , sl_oc::ERROR = 1 , sl_oc::WARNING = 2 , sl_oc::INFO = 3 }
 

Functions

uint64_t getSteadyTimestamp ()
 Get the current system clock as steady clock, so with no jumps even if the system time changes. More...
 
uint64_t getWallTimestamp ()
 Get the current system clock as wall clock (it can have jumps if the system clock is updated by a sync service) More...
 

Function Documentation

◆ getSteadyTimestamp()

uint64_t getSteadyTimestamp ( )
inline

Get the current system clock as steady clock, so with no jumps even if the system time changes.

Returns
the current steady system clock in nanoseconds
Examples
zed_oc_video_example.cpp.

Definition at line 63 of file defines.hpp.

63 {return std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::steady_clock::now().time_since_epoch()).count();}

Referenced by main().

◆ getWallTimestamp()

uint64_t getWallTimestamp ( )
inline

Get the current system clock as wall clock (it can have jumps if the system clock is updated by a sync service)

Returns
the current wall system clock in nanoseconds

Definition at line 69 of file defines.hpp.

69 {return std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::system_clock::now().time_since_epoch()).count();}