I imagine that afking time in Haven would affect it but there is no real convenient way to deduce the total time spent in the Clockworks and even that has afking sometimes.
You've reminded me of an important point though, if you do remember anything you've spent your tokens on then it would be best to list them as mirror did or you could just add on the cost to your total of tokens if you want. Either or will give me a good idea.
I've only spent 2 Grims and 5 Primals to date so my numbers are not far off from my totals.
I'm intrigued to see such similar numbers though.
My playtime is within 20 min of yours (lol), and I have participated in every danger room I can, outside of deep t3 ones or fire/shock ones when I'm solo, and my numbers are thus:
Play time: 4 days, 12 hours, 38 minutes, 35 seconds
187 Primal Sparks
47 Grim Sparks
66 Forge Sparks
I know for a fact that I spend Forge sparks on a 5* mat for my Vog, and Grims for a similar purpose for a mat at one point.
I don't know whether playtime is affected by time spent in Haven though, as that will throw off the results of this experiment.
Cheers!