summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/metal/time.h
blob: a5a880f0da71dc9367878014b44b1fdddf3b0433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright 2019 SiFive, Inc */
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__TIME_H
#define METAL__TIME_H

#include <time.h>
#ifndef __SEGGER_LIBC__
#include <sys/time.h>
#endif

/*!
 * @file time.h
 * @brief API for dealing with time
 */

int metal_gettimeofday(struct timeval *tp, void *tzp);

time_t metal_time(void);

#endif