X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FMicroTime.cc;h=fe190e8d3bdc9b528852b32f884c27872d47b578;hb=9a988902090d28007578e93bffd809f6bd913155;hp=5006c509356b43c8c819f76bca4128f166dac81d;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Utils/MicroTime.cc b/Utils/MicroTime.cc index 5006c50..fe190e8 100644 --- a/Utils/MicroTime.cc +++ b/Utils/MicroTime.cc @@ -1,8 +1,24 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 Stefan Bund +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of non-inline non-template functions +/** \file + \brief MicroTime non-inline non-template implementation */ #include "MicroTime.hh" //#include "MicroTime.ih" @@ -22,7 +38,7 @@ prefix_ senf::MicroTime senf::now() { struct timeval tv; if (gettimeofday(&tv,0) < 0) - throw SystemException(errno); + throw SystemException(errno); return 1000000*MicroTime(tv.tv_sec) + tv.tv_usec; } @@ -34,4 +50,8 @@ prefix_ senf::MicroTime senf::now() // Local Variables: // mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: