/* This file is part of the Linux Trace Toolkit trace reading library
* Copyright (C) 2003-2004 Michel Dagenais
+ * 2005 Mathieu Desnoyers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include <ltt/compiler.h>
#include <math.h>
-#include <ltt/ltt-types.h>
-
typedef struct _LttTime {
unsigned long tv_sec;
unsigned long tv_nsec;
return res;
}
-inline LttTime ltt_get_time(LttTrace t, void *ptr)
-{
- LttTime output;
-
- output.tv_sec =
- (guint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(ptr): ptr);
- ptr += sizeof(guint64);
- output.tv_nsec =
- (guint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(ptr): ptr);
-
- return output;
-}
-
#endif // LTT_TIME_H