~vladh/peony

peony/src/debug.cpp -rw-r--r-- 392 bytes
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

#include "debug.hpp"


chrono::steady_clock::time_point debug_start_timer() {
  return chrono::steady_clock::now();
}


real64 debug_end_timer(chrono::steady_clock::time_point t0) {
  return (
    (chrono::duration<real64, std::milli>)(chrono::steady_clock::now() - t0)
  ).count();
}