1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

feat: use modules for common utils

This commit is contained in:
Tomas Chmelevskij 2021-01-01 22:01:42 +04:00
parent d5d0146af7
commit ef68bb170f
5 changed files with 33 additions and 27 deletions

View file

@ -86,10 +86,6 @@ function generateData(firmware, input, startAddress) {
firmware.bytes_total += input.length;
}
function microtime() {
return new Date().getTime() / 1000;
}
ConfigInserter.prototype.insertConfig = function (firmware, input) {
const timeParsingStart = microtime(); // track time