summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Common/Time/StopWatchInterface.php
blob: 69a03b75ea5b0bdb01812957d492ca1084ac049a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Common\Time;

interface StopWatchInterface
{
    public function isRunning(): bool;

    public function start(): void;

    public function stop(): void;

    public function reset(): void;

    public function getElapsedTime(): int;

    public function getLastElapsedTime(): int;
}