# Average file time

**URL:** https://community.mp3tag.de/t/average-file-time/19158
**Category:** Support
**Created:** [July 17, 2017, 9:10pm UTC](https://community.mp3tag.de/t/average-file-time/19158 "2017-07-17T21:10:20Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [July 18, 2017, 7:20am UTC](https://community.mp3tag.de/t/average-file-time/19158/4 "2017-07-18T07:20:48Z")

</div>

> [@Zerow](#):
>
> Does anyone know how to count the average time of files? ...

Maybe have look at ...  
[XML Export by Kage](https://community.mp3tag.de/t/5619/1)

In general you can add %\_length\_seconds% per file and divide the sum by %\_total\_files%.

Try this export file (one line):  
$filename($getEnv('USERPROFILE')'\Desktop\Export.Time.Files.Avg.txt',UTF-8)'Total Time [s]: '%\_total\_time\_raw%', Total files: '%\_total\_files%', Average Duration [s]: '$div(%\_total\_time\_raw%,%\_total\_files%)

Output examples:  
Total Time [s]: 28, Total files: 4, Average Duration [s]: 7  
Total Time [s]: 344, Total files: 4, Average Duration [s]: 86  
Total Time [s]: 330, Total files: 2, Average Duration [s]: 165  
Total Time [s]: 507, Total files: 3, Average Duration [s]: 169  
Total Time [s]: 146, Total files: 29, Average Duration [s]: 5

What do these values tell us?

DD.20170718.1120.CEST, DD.20170719.1846.CEST

---

_[View the full topic](https://community.mp3tag.de/t/average-file-time/19158)._
