2019-05-01 06:03:22 +02:00
|
|
|
/*
|
2019-08-03 19:43:48 +02:00
|
|
|
* This software is licensed under the terms of the MIT License.
|
2019-05-01 06:03:22 +02:00
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2024-05-16 23:30:41 +02:00
|
|
|
* Copyright (c) 2011-2024, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2024, Andrei Alexeyev <akari@taisei-project.org>.
|
2019-05-01 06:03:22 +02:00
|
|
|
*/
|
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2019-05-01 06:03:22 +02:00
|
|
|
#include "taisei.h"
|
2019-07-03 19:50:43 +02:00
|
|
|
|
2019-05-03 23:51:30 +02:00
|
|
|
#include <time.h>
|
2019-05-01 06:03:22 +02:00
|
|
|
|
|
|
|
#ifdef TAISEI_BUILDCONF_HAVE_TIMESPEC
|
|
|
|
typedef struct timespec SystemTime;
|
|
|
|
#else
|
|
|
|
typedef struct SystemTime {
|
|
|
|
time_t tv_sec;
|
|
|
|
long tv_nsec;
|
|
|
|
} SystemTime;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void get_system_time(SystemTime *time) attr_nonnull(1);
|