Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (27 sloc) 1.172 kb
a9d3e53 @hzeller o Found a project name: "Folve". Some renamings because of that.
authored
1 // -*- c++ -*-
c1a03f2 @hzeller o Needed convenient sub-second resolution time. Added CurrentTime()
authored
2 // Copyright (C) 2012 Henner Zeller <h.zeller@acm.org>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16
a9d3e53 @hzeller o Found a project name: "Folve". Some renamings because of that.
authored
17 #ifndef FOLVE_UTIL_H
18 #define FOLVE_UTIL_H
c1a03f2 @hzeller o Needed convenient sub-second resolution time. Added CurrentTime()
authored
19
8268c37 @hzeller o Bubble up error messages in status server.
authored
20 #include <string>
21
a9d3e53 @hzeller o Found a project name: "Folve". Some renamings because of that.
authored
22 namespace folve {
8268c37 @hzeller o Bubble up error messages in status server.
authored
23 // Returns the current time as seconds since the start of the unix epoch,
24 // but in microsecond resolution.
c1a03f2 @hzeller o Needed convenient sub-second resolution time. Added CurrentTime()
authored
25 double CurrentTime();
8268c37 @hzeller o Bubble up error messages in status server.
authored
26
27 // Like snprintf, but print to a std::string instead.
28 void Appendf(std::string *str, const char *format, ...)
29 __attribute__ ((format (printf, 2, 3)));
30
c1a03f2 @hzeller o Needed convenient sub-second resolution time. Added CurrentTime()
authored
31 } // namespece fuse_convolve
32
a9d3e53 @hzeller o Found a project name: "Folve". Some renamings because of that.
authored
33 #endif // FOLVE_UTIL_H
Something went wrong with that request. Please try again.