Rosetta
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
basic
gpu
Timer.hh
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
/// @file basic/gpu/Timer.hh
11
/// @brief High-resolution Timer (ns resolution, but on *nix only)
12
/// @author Luki Goldschmidt (luki@mbi.ucla.edu)
13
14
#ifndef INCLUDED_basic_gpu_Timer_hh
15
#define INCLUDED_basic_gpu_Timer_hh
16
17
#ifdef WIN32
18
#include <time.h>
19
#else
20
#include <sys/time.h>
21
#endif
22
23
#include <
basic/Tracer.hh
>
24
25
namespace
basic {
26
namespace
gpu {
27
28
class
Timer
{
29
#ifdef WIN32
30
clock_t
start
,
end
;
31
#else
32
struct
timeval
start
,
end
;
33
#endif
34
const
char
*
tag_
;
35
basic::Tracer::TracerProxy
*
t_
;
36
public
:
37
Timer
(
const
char
*
tag
);
38
Timer
(
basic::Tracer::TracerProxy
& t,
const
char
*
tag
=NULL);
39
Timer
();
40
~Timer
();
41
void
Report
(
const
char
*
tag
=NULL);
42
void
Reset
();
43
double
GetTime
();
44
};
45
46
}
// gpu
47
}
// basic
48
49
#endif // INCLUDED_basic_gpu_Timer_hh
basic::gpu::Timer::Report
void Report(const char *tag=NULL)
Definition:
Timer.cc:69
basic::gpu::Timer
Definition:
Timer.hh:28
basic::gpu::Timer::GetTime
double GetTime()
Definition:
Timer.cc:62
basic::gpu::Timer::~Timer
~Timer()
Definition:
Timer.cc:29
basic::gpu::Timer::end
struct timeval start end
Definition:
Timer.hh:32
basic::gpu::Timer::Reset
void Reset()
Definition:
Timer.cc:58
test.Workshop5test.start
tuple start
Definition:
Workshop5test.py:10
basic::gpu::Timer::tag_
const char * tag_
Definition:
Timer.hh:34
Tracer.hh
Tracer IO system.
basic::Tracer::TracerProxy
Small inner class acting as a proxy to an object that hold it.
Definition:
Tracer.hh:228
basic::gpu::Timer::t_
basic::Tracer::TracerProxy * t_
Definition:
Timer.hh:35
basic::gpu::Timer::Timer
Timer()
Definition:
Timer.cc:23
tag
rule< Scanner, tag_closure::context_t > tag
Definition:
Tag.cc:373
Generated on Sun Jan 17 2016 15:21:16 for Rosetta by
1.8.7