implemented fast forward and max ff speed
This commit is contained in:
parent
b3283adf0b
commit
f9eee026f3
3 changed files with 98 additions and 10 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/time.h>
|
||||
#include "utils.h"
|
||||
#include "defines.h"
|
||||
|
||||
|
|
@ -148,3 +149,15 @@ void putInt(char* path, int value) {
|
|||
sprintf(buffer, "%d", value);
|
||||
putFile(path, buffer);
|
||||
}
|
||||
|
||||
uint64_t getMicroseconds(void) {
|
||||
uint64_t ret;
|
||||
struct timeval tv;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
|
||||
ret = (uint64_t)tv.tv_sec * 1000000;
|
||||
ret += (uint64_t)tv.tv_usec;
|
||||
|
||||
return ret;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue