watchdog/src/epoc-time.cpp

Go to the documentation of this file.
00001 #include "epoc-time.h"
00002 
00003 TTimeIntervalMicroSeconds32 SecsToUsecs(TInt secs)
00004 {
00005   TInt64 us64 = TInt64(secs) * 1000000LL;
00006   // max time is around 35 minutes only
00007   TInt us = ((us64 > 2147483647LL) ? 2147483647 : (int)us64);
00008   return TTimeIntervalMicroSeconds32(us);
00009 }
00010 
00011 /**
00012 
00013 epoc-time.cpp
00014 
00015 Copyright 2009 Helsinki Institute for Information Technology (HIIT)
00016 and the authors. All rights reserved.
00017 
00018 Authors: Tero Hasu <tero.hasu@hut.fi>
00019 
00020 Permission is hereby granted, free of charge, to any person
00021 obtaining a copy of this software and associated documentation files
00022 (the "Software"), to deal in the Software without restriction,
00023 including without limitation the rights to use, copy, modify, merge,
00024 publish, distribute, sublicense, and/or sell copies of the Software,
00025 and to permit persons to whom the Software is furnished to do so,
00026 subject to the following conditions:
00027 
00028 The above copyright notice and this permission notice shall be
00029 included in all copies or substantial portions of the Software.
00030 
00031 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00032 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00033 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00034 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
00035 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00036 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00037 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00038 SOFTWARE.
00039 
00040  **/

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:52 2011 by Doxygen 1.6.1