diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/nsutils/time.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/nsutils/time.h b/include/nsutils/time.h new file mode 100644 index 0000000..e07a670 --- /dev/null +++ b/include/nsutils/time.h @@ -0,0 +1,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. + */ +nserror nsu_nsu_getmonotonic_ms(uint64_t *current); + +#endif |