summaryrefslogtreecommitdiff
path: root/include/dolphin/os/OSStopwatch.h
blob: 26a75ddb3a5dee55a75440fb78b4a630ded47c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef OSSTOPWATCH_H
#define OSSTOPWATCH_H

struct OSStopwatch {
    char * name;
    long long total;
    unsigned long hits;
    long long min;
    long long max;
    long long last;
    int running;
};

void OSInitStopwatch(struct OSStopwatch * sw, char * name);
void OSStartStopwatch(struct OSStopwatch * sw);
void OSStopStopwatch(struct OSStopwatch * sw);
long long OSCheckStopwatch(struct OSStopwatch * sw);
void OSResetStopwatch(struct OSStopwatch * sw);
void OSDumpStopwatch(struct OSStopwatch * sw);

#endif /* OSSTOPWATCH_H */