File: misc.h

package info (click to toggle)
tsdecrypt 8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,084 kB
  • sloc: ansic: 13,568; makefile: 248; sh: 183
file content (20 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Misc functions header file
 * Copyright (C) 2010 Unix Solutions Ltd.
 *
 * Released under MIT license.
 * See LICENSE-MIT.txt for license terms.
 */
#ifndef MISC_H
#define MISC_H

#include <sys/time.h>

int xstrcmp(char *a, char *b);

unsigned long long timediff_nsec(struct timespec *start_ts, struct timespec *end_ts);
unsigned long long timeval_diff_usec(struct timeval *start_ts, struct timeval *end_ts);
unsigned long long timeval_diff_msec(struct timeval *start_ts, struct timeval *end_ts);
unsigned long long timeval_diff_sec (struct timeval *start_ts, struct timeval *end_ts);

#endif