blob: 93a4c1da0aa578255dd151cf3958c5040d379c13 (
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
28
29
30
31
|
/*
* Copyright 2014 Vincent Sanders <vince@netsurf-browser.org>
*
* This file is part of libnsutils.
*
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
/**
* \file
* Base64 encoding and decoding interface.
*/
#ifndef NSUTILS_TIME_H_
#define NSUTILS_TIME_H_
#include <nsutils/errors.h>
/**
* Get a monotonically incrementing number of milliseconds.
*
* Obtain a count of elapsed time in milliseconds. Unlike gettimeofday this
* will continue linearly across time setting and not go backwards,
*
* \param current The current value of the counter.
* \return NSERROR_OK on success else error code.
*/
nsuerror nsu_getmonotonic_ms(uint64_t *current);
#endif
|