Changeset 13:b007fba6d1b5 in rrlib_util


Ignore:
Timestamp:
11.01.2011 19:06:41 (9 years ago)
Author:
Jens Wettach <wettach@…>
Branch:
default
Phase:
public
Convert:
svn:dcce5f72-5200-4218-9373-75d9081937af/trunk@20
Message:

added tTime functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tTime.h

    r11 r13  
    8383  } 
    8484 
     85  /*! Returns tTime in seconds rounded down to an long integer.*/ 
     86  inline long long ToSec()const 
     87  { 
     88    return this->tv_sec; 
     89  } 
     90 
    8591  /*! Returns tTime in milli seconds rounded down to an long integer.*/ 
    8692  inline long long ToMSec()const 
    8793  { 
    8894    return (long long)tv_usec / 1000 + (long long)tv_sec*1000; 
     95  } 
     96 
     97  /*! Returns tTime in microseconds */ 
     98  inline long long ToUSec()const 
     99  { 
     100    return (long long)tv_usec + (long long)tv_sec*1000000; 
    89101  } 
    90102 
Note: See TracChangeset for help on using the changeset viewer.