| 34 | } |
| 35 | |
| 36 | float getCurrentTimeInMilliseconds( |
| 37 | std::chrono::time_point<std::chrono::high_resolution_clock> &zeroTime) { |
| 38 | std::chrono::duration<float> duration = |
| 39 | std::chrono::high_resolution_clock::now() - zeroTime; |
| 40 | return duration.count(); |
| 41 | } |
| 42 | |
| 43 | void loadKernelCode(const std::string &filename, std::string &codeString) { |
| 44 | codeString = ""; |