mirror of
https://github.com/switchbrew/libnx.git
synced 2025-12-13 23:45:22 +01:00
18 lines
359 B
C
18 lines
359 B
C
// Copyright 2018 plutoo
|
|
#pragma once
|
|
#include "kernel/svc.h"
|
|
|
|
typedef struct UsermodeTimer UsermodeTimer;
|
|
|
|
struct UsermodeTimer
|
|
{
|
|
u64 next_time;
|
|
u64 interval;
|
|
};
|
|
|
|
void utimerCreate(UsermodeTimer* t, u64 interval);
|
|
|
|
// Internal methods (do not use!):
|
|
void _utimerRecalculate(UsermodeTimer* t, u64 old_time);
|
|
u64 _utimerGetNextTime(UsermodeTimer* t);
|