blob: e02924fce2152bc854c5ccc7721c0b7224edc241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <time.h>
#include <iostream>
#include "pingI.h"
// Implementation skeleton constructor
Linutronix_Ping_i::Linutronix_Ping_i (void)
{
}
// Implementation skeleton destructor
Linutronix_Ping_i::~Linutronix_Ping_i (void)
{
}
void Linutronix_Ping_i::send (
const char * payload)
{
// Add your implementation here
struct timespec time_rx;
clock_gettime(CLOCK_MONOTONIC, &time_rx);
std::cout<<time_rx.tv_sec<<":"<<time_rx.tv_nsec/1000<<": "<<payload<<"\n";
}
|