mirror of https://github.com/mgba-emu/mgba.git
Use proper literal sizes for uint64_t
This commit is contained in:
parent
f484ef9fa8
commit
0050fb23c3
|
@ -76,10 +76,10 @@ int main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, 0);
|
gettimeofday(&tv, 0);
|
||||||
uint64_t start = 1000000 * tv.tv_sec + tv.tv_usec;
|
uint64_t start = 1000000LL * tv.tv_sec + tv.tv_usec;
|
||||||
_GBAPerfRunloop(&context, &frames, perfOpts.csv);
|
_GBAPerfRunloop(&context, &frames, perfOpts.csv);
|
||||||
gettimeofday(&tv, 0);
|
gettimeofday(&tv, 0);
|
||||||
uint64_t end = 1000000 * tv.tv_sec + tv.tv_usec;
|
uint64_t end = 1000000LL * tv.tv_sec + tv.tv_usec;
|
||||||
uint64_t duration = end - start;
|
uint64_t duration = end - start;
|
||||||
|
|
||||||
GBAThreadJoin(&context);
|
GBAThreadJoin(&context);
|
||||||
|
|
Loading…
Reference in New Issue