This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/blenlib/PIL_time.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
755 B
C++
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
2011-02-27 20:37:56 +00:00
/** \file
* \ingroup bli
* \brief Platform independent time functions.
2011-02-27 20:37:56 +00:00
*/
#pragma once
2002-10-12 11:37:38 +00:00
#ifdef __cplusplus
2018-06-17 16:32:54 +02:00
extern "C" {
2002-10-12 11:37:38 +00:00
#endif
extern
/** Return an indication of time, expressed as
2019-04-18 07:21:26 +02:00
* seconds since some fixed point. Successive calls
* are guaranteed to generate values greater than or
* equal to the last call. */
double
PIL_check_seconds_timer(void);
2002-10-12 11:37:38 +00:00
extern
2019-04-18 07:21:26 +02:00
/** `int` version of #PIL_check_seconds_timer. */
long int
PIL_check_seconds_timer_i(void);
/**
* Platform-independent sleep function.
* \param ms: Number of milliseconds to sleep
*/
void PIL_sleep_ms(int ms);
2002-10-12 11:37:38 +00:00
#ifdef __cplusplus
}
#endif