17 lines
262 B
C++
17 lines
262 B
C++
#pragma once
|
|
|
|
#include <Network/NtpClient.h>
|
|
|
|
class NtpClientDemo
|
|
{
|
|
public:
|
|
NtpClientDemo() : client(nullptr, 30, NtpTimeResultDelegate(&NtpClientDemo::ntpResult, this))
|
|
{
|
|
}
|
|
|
|
void ntpResult(NtpClient& client, time_t ntpTime);
|
|
|
|
private:
|
|
NtpClient client;
|
|
};
|