A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kokkos.github.io/kokkos-core-wiki/API/core/utilities/timer.html below:

Kokkos::Timer - Kokkos documentation

Toggle table of contents sidebar

Kokkos::Timer

Header File: <Kokkos_Core.hpp>

Usage
Kokkos::Timer timer;
double time = timer.seconds();
timer.reset();

Timer is a simple construct to measure time.

Synopsis
class Timer {
    typedef Timer execution_policy;

    //Constructors
    Timer();
    Timer(Timer&&) = default;
    Timer(const Timer&) = default;
    ~Timer() = default;

    //Member functions
    double seconds();
    void reset();
};
Public Class Members Constructors Examples
Timer timer;
// ...
double time1 = timer.seconds();
timer.reset();
// ...
double time2 = timer.seconds();

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4