Global Metrics
path: .metrics.nargs.average
old: null
new: 0.5
path: .metrics.nargs.sum
old: 0.0
new: 1.0
path: .metrics.cyclomatic.average
old: 1.0
new: 1.3333333333333333
path: .metrics.cyclomatic.sum
old: 2.0
new: 4.0
path: .metrics.nom.total
old: 0.0
new: 2.0
path: .metrics.nom.functions
old: 0.0
new: 2.0
path: .metrics.cognitive.average
old: null
new: 0.5
path: .metrics.cognitive.sum
old: 0.0
new: 1.0
path: .metrics.nexits.average
old: null
new: 1.5
path: .metrics.nexits.sum
old: 0.0
new: 3.0
path: .metrics.halstead.n1
old: 11.0
new: 14.0
path: .metrics.halstead.volume
old: 140.55415752892034
new: 256.7639251168273
path: .metrics.halstead.N2
old: 11.0
new: 19.0
path: .metrics.halstead.N1
old: 21.0
new: 35.0
path: .metrics.halstead.length
old: 32.0
new: 54.0
path: .metrics.halstead.level
old: 0.1652892561983471
new: 0.09774436090225563
path: .metrics.halstead.purity_ratio
old: 2.2272821485588716
new: 1.8779386156414937
path: .metrics.halstead.bugs
old: 0.029918842850869213
new: 0.06346100445097722
path: .metrics.halstead.time
old: 47.24181405833155
new: 145.93847025870951
path: .metrics.halstead.difficulty
old: 6.05
new: 10.23076923076923
path: .metrics.halstead.effort
old: 850.352653049968
new: 2626.892464656771
path: .metrics.halstead.n2
old: 10.0
new: 13.0
path: .metrics.halstead.vocabulary
old: 21.0
new: 27.0
path: .metrics.halstead.estimated_program_length
old: 71.27302875388389
new: 101.40868524464064
path: .metrics.loc.blank
old: 8.0
new: 5.0
path: .metrics.loc.cloc
old: 5.0
new: 6.0
path: .metrics.loc.lloc
old: 0.0
new: 6.0
path: .metrics.loc.sloc
old: 24.0
new: 22.0
path: .metrics.mi.mi_original
old: 93.33844498618814
new: 91.1546954217554
path: .metrics.mi.mi_sei
old: 91.64354638666023
new: 92.39609489993076
path: .metrics.mi.mi_visual_studio
old: 54.58388595683517
new: 53.30683942792714
Spaces Data
Minimal test - lines (11, 20)
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: null
new: 2.0
path: .spaces[0].metrics.halstead.time
old: 37.64135768856955
new: 118.20724846699298
path: .spaces[0].metrics.halstead.level
old: 0.18181818181818185
new: 0.09821428571428573
path: .spaces[0].metrics.halstead.length
old: 29.0
new: 45.0
path: .spaces[0].metrics.halstead.effort
old: 677.5444383942519
new: 2127.7304724058736
path: .spaces[0].metrics.halstead.n2
old: 8.0
new: 11.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.1397844070693197
new: 2.0301492603070384
path: .spaces[0].metrics.halstead.N2
old: 8.0
new: 16.0
path: .spaces[0].metrics.halstead.N1
old: 21.0
new: 29.0
path: .spaces[0].metrics.halstead.difficulty
old: 5.5
new: 10.181818181818182
path: .spaces[0].metrics.halstead.n1
old: 11.0
new: 14.0
path: .spaces[0].metrics.halstead.bugs
old: 0.02571405697085973
new: 0.05514292776690795
path: .spaces[0].metrics.halstead.vocabulary
old: 19.0
new: 25.0
path: .spaces[0].metrics.halstead.volume
old: 123.18989788986396
new: 208.9735285398626
path: .spaces[0].metrics.halstead.estimated_program_length
old: 62.05374780501027
new: 91.35671671381672
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: null
new: 1.0
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 63.41329873276451
new: 61.67172049418331
path: .spaces[0].metrics.mi.mi_original
old: 108.43674083302732
new: 105.45864204505344
path: .spaces[0].metrics.mi.mi_sei
old: 80.84211611736201
new: 76.64744762407913
path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 2.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 5.0
path: .spaces[0].metrics.loc.ploc
old: 6.0
new: 8.0
path: .spaces[0].metrics.loc.blank
old: 4.0
new: 2.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 1.0
path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 1.0
Code
bool nsUserIdleServiceWin::PollIdleTime(uint32_t* aIdleTime) {
LASTINPUTINFO inputInfo;
inputInfo.cbSize = sizeof(inputInfo);
if (!::GetLastInputInfo(&inputInfo)) return false;
*aIdleTime =
SAFE_COMPARE_EVEN_WITH_WRAPPING(GetTickCount(), inputInfo.dwTime);
return true;
}