blob: 0012c64dfba484c8993d3ef475339dd8999fbf27 [file] [log] [blame]
/**************************************************************************//**
* @file cimax+usb_time.h
*
* @brief CIMaX+ USB Driver for linux based operating systems.
*
* Copyright (C) 2009-2011 Bruno Tonelli <bruno.tonelli@smardtv.com>
* & Franck Descours <franck.descours@smardtv.com>
* for SmarDTV France, La Ciotat
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
******************************************************************************/
#ifndef __CIMAXPLUS_USB_TIME_H
#define __CIMAXPLUS_USB_TIME_H
/******************************************************************************
* Include
******************************************************************************/
#include <linux/ktime.h>
/******************************************************************************
* Defines
******************************************************************************/
#define MAX_ITEMS 100000
#define MAX_LINE_SIZE 128
/******************************************************************************
* Enums
******************************************************************************/
/******************************************************************************
* Structures
******************************************************************************/
struct item_s {
struct timespec stTime;
char pcLine[MAX_LINE_SIZE];
};
struct item_array_s {
int count;
item_s stItem[MAX_ITEMS];
};
extern struct item_array_s gstArray;
/******************************************************************************
* Functions
******************************************************************************/
/******************************************************************************
* @brief
* Init timestamp.
*
* @param
* None
*
* @return
* None.
******************************************************************************/
void InitTimestamp(void);
/******************************************************************************
* @brief
* Set timestamp.
*
* @param pcFormat
* Printf-like format
*
* @return
* None.
******************************************************************************/
void SetTimestamp(const char *pcFormat, ...);
/******************************************************************************
* @brief
* Display all timestamps.
*
* @param
* None
*
* @return
* None.
******************************************************************************/
void ShowTimestamp(void);
#endif