summaryrefslogtreecommitdiff
path: root/common/mock/timer_mock.c
blob: 1abfa79241c410170be2c133a97c0a0a90949fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright 2019 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "mock/timer_mock.h"

static timestamp_t now;

void set_time(timestamp_t now_)
{
	now = now_;
}

timestamp_t get_time(void)
{
	return now;
};