psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
systime.h
Go to the documentation of this file.
1
5#ifndef __SYS_SYSTIME_H__
6#define __SYS_SYSTIME_H__
7
8#include <ppu-lv2.h>
9#include <lv2/systime.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16{
17 lv2syscall0(147);
18 return_to_user_prog(u64);
19}
20
21LV2_SYSCALL sysGetCurrentTime(u64 *sec,u64 *nsec)
22{
23 lv2syscall2(145,(u64)sec,(u64)nsec);
24 return_to_user_prog(s32);
25}
26
27LV2_SYSCALL sysSetCurrentTime(u64 sec,u64 nsec)
28{
29 lv2syscall2(146,sec,nsec);
30 return_to_user_prog(s32);
31}
32
33LV2_SYSCALL sysSleep(u32 seconds)
34{
35 lv2syscall1(142,seconds);
36 return_to_user_prog(s32);
37}
38
39LV2_SYSCALL sysUsleep(u32 useconds)
40{
41 lv2syscall1(141,useconds);
42 return_to_user_prog(s32);
43}
44
45#ifdef __cplusplus
46 }
47#endif
48
49#endif
LV2_SYSCALL sysSetCurrentTime(u64 sec, u64 nsec)
Definition systime.h:27
LV2_SYSCALL sysUsleep(u32 useconds)
Definition systime.h:39
LV2_SYSCALL sysSleep(u32 seconds)
Definition systime.h:33
LV2_INLINE u64 sysGetTimebaseFrequency()
Definition systime.h:15
LV2_SYSCALL sysGetCurrentTime(u64 *sec, u64 *nsec)
Definition systime.h:21