Newer
Older
Tardis / include / Clock.h
@Jookia Jookia on 4 Apr 2023 402 bytes Clock: Add our clock
/*
SPDX-License-Identifier: MIT
Copyright (c) 2023 John Watts and the LuminaSensum contributors
*/

#ifndef CLOCK_H
#define CLOCK_H

#include "NetworkInterface.h"
#include "sntp.h"
#include <time.h>

void clock_setup(void);

struct timeval clock_time(void);

SNTPError clock_sync(NetworkInterface &net);

const char *clock_timestring(const char *format);
const char *clock_iso8601string(void);

#endif