14 #ifndef INCLUDED_basic_gpu_GPU_cc
15 #define INCLUDED_basic_gpu_GPU_cc
52 double time = 1000 * (
end-
start) / CLOCKS_PER_SEC;
59 gettimeofday(&
start, NULL);
63 gettimeofday(&
end, NULL);
64 double time = ((
end.tv_sec -
start.tv_sec)*1000 + (
end.tv_usec -
start.tv_usec)/1000.);
74 (*t_) <<
"Time [" << tag <<
"]: ";
78 (*t_) << time <<
" ms" << std::endl;
92 #endif // INCLUDED_basic_gpu_GPU_cc
void Report(const char *tag=NULL)
High-resolution Timer (ns resolution, but on *nix only)
Small inner class acting as a proxy to an object that hold it.
basic::Tracer::TracerProxy * t_
ocstream cout(std::cout)
Wrapper around std::cout.
rule< Scanner, tag_closure::context_t > tag