Galaxis Codebase  1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
masterNode.cpp File Reference
#include "masterNode.hpp"
#include <rclcpp/rclcpp.hpp>
#include <galaxis/node_ros_pubsub_wrapper.hpp>
#include <functional>
#include <string>
#include <sstream>
#include <galaxis/cuprules.hpp>
#include <utils/logger.hpp>
#include <unistd.h>
Include dependency graph for masterNode.cpp:

Go to the source code of this file.

Functions

static long long __get_time_now_ms ()
 

Function Documentation

◆ __get_time_now_ms()

static long long __get_time_now_ms ( )
static

Definition at line 13 of file masterNode.cpp.

13  {
14  auto time_now = std::chrono::system_clock::now();
15  auto time_now_ms = std::chrono::time_point_cast<std::chrono::milliseconds>(time_now);
16  auto time_value = time_now_ms.time_since_epoch();
17  return time_value.count();
18 }

Referenced by masterNode::getSystemOnlineState(), masterNode::heartbeat_callback(), and masterNode::print_system_status().

Here is the caller graph for this function: