Project

General

Profile

Download (219 Bytes) Statistics
| Branch: | Tag: | Revision:
1 956debaf Christian Daniel
#include <time.h>
2
#include "utils.h"
3
4
uint64_t getTickCount()
5
{
6
	struct timespec t;
7
8
	if(clock_gettime(CLOCK_MONOTONIC, &t) != 0)
9
		return 0;
10
	return (((uint64_t)t.tv_sec) * 1000) + (((uint64_t)t.tv_nsec) / 1000000);
11
}
Add picture from clipboard (Maximum size: 48.8 MB)