XrdMonConvertTimestampApp.cc

Go to the documentation of this file.
00001 /*****************************************************************************/
00002 /*                                                                           */
00003 /*                        XrdMonConvertTimestampApp.cc                       */
00004 /*                                                                           */
00005 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
00006 /*                            All Rights Reserved                            */
00007 /*       Produced by Jacek Becla for Stanford University under contract      */
00008 /*              DE-AC02-76SF00515 with the Department of Energy              */
00009 /*****************************************************************************/
00010 
00011 // $Id: XrdMonConvertTimestampApp.cc 24468 2008-06-22 16:47:03Z ganis $
00012 
00013 #include "XrdMon/XrdMonUtils.hh"
00014 #include "XrdSys/XrdSysHeaders.hh"
00015 #include <stdio.h>
00016 #include <string>
00017 using std::cerr;
00018 using std::cout;
00019 using std::endl;
00020 using std::string;
00021 
00022 int main(int argc, char* argv[])
00023 {
00024     if ( argc < 2 ) {
00025         cerr << "Expected arg: timestamp" << endl;
00026         return 1;
00027     }
00028     for ( int i=1 ; i<argc ; ++i ) {
00029         kXR_int32 t;
00030         sscanf(argv[i], "%ld", &t);
00031         cout << t << "  --> " << timestamp2string(t) << endl;
00032     }
00033     
00034     return 0;
00035 }
00036 
00037 

Generated on Tue Jul 5 14:46:36 2011 for ROOT_528-00b_version by  doxygen 1.5.1