I need to copy a file on my SD card but I feel that the speed is rather slow. So what is the expected speed of copying a file onto the same SD card?
With my Kingston 2Gb SD card it takes 30 seconds to copy a 658Kb file, is this normal?
FEZ Panda on a tinkerer kit.
Here is my test program.
using System;
using System.Threading;
using System.IO;
using Microsoft.SPOT;
using Microsoft.SPOT.IO;
using GHIElectronics.NETMF.IO;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
namespace File_Copy_test
{
public class Program
{
public static void Main()
{
PersistentStorage sdPS = new PersistentStorage("SD");
sdPS.MountFileSystem();
string rootDirectory = VolumeInfo.GetVolumes()[0].RootDirectory;
string FileName = rootDirectory + @ "\Test.txt";
string CopyName = rootDirectory + @ "\TestCopy.txt";
DateTime StartT, StopT;
Thread.Sleep(1000);
Debug.Print("Copy start...");
StartT = DateTime.Now;
File.Copy(FileName, CopyName, true);
StopT = DateTime.Now;
TimeSpan Tid = StopT - StartT ;
Debug.Print(Tid.ToString());
}
}
}