WUT
0.1
Wii U Toolchain
Main Page
Modules
Data Structures
Files
File List
Globals
include
coreinit
systeminfo.h
Go to the documentation of this file.
1
#pragma once
2
#include <
wut.h
>
3
#include "
time.h
"
4
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
typedef
struct
OSSystemInfo
OSSystemInfo
;
16
17
struct
OSSystemInfo
18
{
19
uint32_t
clockSpeed
;
20
UNKNOWN(0x4);
21
OSTime
baseTime
;
22
UNKNOWN(0x10);
23
};
24
CHECK_OFFSET(
OSSystemInfo
, 0x0, clockSpeed);
25
CHECK_OFFSET(
OSSystemInfo
, 0x8, baseTime);
26
CHECK_SIZE(
OSSystemInfo
, 0x20);
27
28
29
#define OSOneSecond ((OSGetSystemInfo()->clockSpeed) / 4)
30
#define OSMilliseconds(val) ((((uint64_t)(val)) * (uint64_t)(OSOneSecond)) / 1000ull)
31
32
OSSystemInfo
*
33
OSGetSystemInfo
();
34
35
#ifdef __cplusplus
36
}
37
#endif
38
OSGetSystemInfo
OSSystemInfo * OSGetSystemInfo()
OSSystemInfo
Definition:
systeminfo.h:17
OSTime
int64_t OSTime
Definition:
time.h:17
time.h
OSSystemInfo::clockSpeed
uint32_t clockSpeed
Definition:
systeminfo.h:19
wut.h
OSSystemInfo::baseTime
OSTime baseTime
Definition:
systeminfo.h:21
Generated by
1.8.10