summaryrefslogtreecommitdiff
path: root/common/mock/timer_mock.c
blob: 21408b7fe64d30c554d496b4439520faaa3cad2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
 * 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;
};