Melee Modding Library  2.0.0
A C library for modding Super Smash Bros Melee
profile.h
Go to the documentation of this file.
1 
6 #ifndef MML_PROFILE_H
7 #define MML_PROFILE_H
8 
9 #include "gctypes.h"
10 
12 typedef struct
13 {
22 } Profile;
23 
25 #define DEFAULT_PROFILE {0, 0xFFFFFFFF, 0, 0, 0}
26 
28 extern u32 (*OSGetTime)(void);
29 extern u32 (*OSGetTick)(void);
30 extern u32 (*OSGetSystemTime)(void);
31 extern u32 (*OSTimeToSystemTime)(void);
32 
33 #if 0
34 
36 #endif
37 
44 void startTrial(Profile* prof);
45 
52 void endTrial(Profile* prof);
53 
61 void printProfile(Profile* prof);
62 
63 #endif
void endTrial(Profile *prof)
Finish timing your code.
Definition: profile.c:15
Data types for the gamecube.
u32 minTicks
Definition: profile.h:15
void startTrial(Profile *prof)
Start timing your code.
Definition: profile.c:10
key information about code performance
Definition: profile.h:12
u32 startTick
Definition: profile.h:20
uint32_t u32
Definition: gctypes.h:16
void printProfile(Profile *prof)
Print stats about your code performance.
Definition: profile.c:31
u32 numTrials
Definition: profile.h:18
u32 avgTicks
Definition: profile.h:16
u32 maxTicks
Definition: profile.h:14