Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (31 sloc) 1.359 kb
a9d3e53 Henner Zeller o Found a project name: "Folve". Some renamings because of that.
authored
1 // -*- c++ -*-
c1a03f2 Henner Zeller 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 Henner Zeller o Found a project name: "Folve". Some renamings because of that.
authored
17 #ifndef FOLVE_UTIL_H
18 #define FOLVE_UTIL_H
c1a03f2 Henner Zeller o Needed convenient sub-second resolution time. Added CurrentTime()
authored
19
8268c37 Henner Zeller o Bubble up error messages in status server.
authored
20 #include <string>
21
a9d3e53 Henner Zeller o Found a project name: "Folve". Some renamings because of that.
authored
22 namespace folve {
8268c37 Henner Zeller 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 Henner Zeller o Needed convenient sub-second resolution time. Added CurrentTime()
authored
25 double CurrentTime();
8268c37 Henner Zeller 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)));
3e883b7 Henner Zeller o Match filters in sequence
authored
30
31 // Convenience, that returns a string directly. A bit less efficient than
32 // Appendf().
33 std::string StringPrintf(const char *format, ...)
34 __attribute__ ((format (printf, 1, 2)));
c1a03f2 Henner Zeller o Needed convenient sub-second resolution time. Added CurrentTime()
authored
35 } // namespece fuse_convolve
36
a9d3e53 Henner Zeller o Found a project name: "Folve". Some renamings because of that.
authored
37 #endif // FOLVE_UTIL_H
Something went wrong with that request. Please try again.