blob: d808aeaf7dd9740e700a8d46ba096e40932f7b6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __CROS_EC_GETTIMEOFDAY_H
#define __CROS_EC_GETTIMEOFDAY_H
#include "common.h"
#include <sys/time.h>
/**
* Get the time.
*
* @warning This does not match gettimeofday() exactly; it does not return the
* time since the Unix Epoch.
*
* @param[out] tv time
* @param[in] tz ignored
* @return EC_SUCCESS on success
* @return EC_ERROR_INVAL on invalid parameters
*/
enum ec_error_list ec_gettimeofday(struct timeval *restrict tv,
void *restrict tz);
#endif /* __CROS_EC_GETTIMEOFDAY_H */
|