Add Chromium-only Blender WebEngine parity work
This commit is contained in:
39
blender-5.2.0/source/blender/blenlib/BLI_time.h
Normal file
39
blender-5.2.0/source/blender/blenlib/BLI_time.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/** \file
|
||||
* \ingroup bli
|
||||
* \brief Platform independent time functions.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace blender {
|
||||
|
||||
/**
|
||||
* Return an indication of time, expressed as seconds since some fixed point.
|
||||
* Successive calls are guaranteed to generate values greater than or equal to the last call.
|
||||
*/
|
||||
double BLI_time_now_seconds();
|
||||
|
||||
/** Integer version of #BLI_time_now_seconds. */
|
||||
int64_t BLI_time_now_seconds_i();
|
||||
|
||||
/**
|
||||
* Platform-independent sleep function.
|
||||
* \param ms: Number of milliseconds to sleep
|
||||
*/
|
||||
void BLI_time_sleep_ms(int ms);
|
||||
|
||||
/**
|
||||
* Platform-independent high-resolution sleep function.
|
||||
* Using this function can have advantages over \see BLI_time_sleep_ms on Windows due to a default
|
||||
* non-precise sleep resolution of 15.25ms.
|
||||
* \param us: Number of microseconds to sleep
|
||||
*/
|
||||
void BLI_time_sleep_precise_us(int us);
|
||||
|
||||
} // namespace blender
|
||||
Reference in New Issue
Block a user