mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 00:26:32 +00:00
[client] make methods static inline
This commit is contained in:
parent
163f612efa
commit
2374b1a9fb
@ -573,7 +573,7 @@ bool lgr_opengl_on_frame_event(void * opaque, const uint8_t * data, bool resampl
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void lgr_opengl_draw_mouse(struct LGR_OpenGL * this)
|
static inline void lgr_opengl_draw_mouse(struct LGR_OpenGL * this)
|
||||||
{
|
{
|
||||||
if (!this->mouseVisible)
|
if (!this->mouseVisible)
|
||||||
return;
|
return;
|
||||||
|
@ -22,14 +22,14 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
inline uint64_t microtime()
|
static inline uint64_t microtime()
|
||||||
{
|
{
|
||||||
struct timespec time;
|
struct timespec time;
|
||||||
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
|
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
|
||||||
return ((uint64_t)time.tv_sec * 1000000) + (time.tv_nsec / 1000);
|
return ((uint64_t)time.tv_sec * 1000000) + (time.tv_nsec / 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline uint64_t nanotime()
|
static inline uint64_t nanotime()
|
||||||
{
|
{
|
||||||
struct timespec time;
|
struct timespec time;
|
||||||
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
|
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user